jbuild 0.1.8

High-performance Java build tool supporting Maven and Gradle
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::plugin_api::descriptor::PluginDescriptor;
use crate::plugin_api::mojo::Mojo;

/// Maven plugin
pub trait Plugin: Send + Sync {
    /// Get the plugin descriptor
    fn descriptor(&self) -> &PluginDescriptor;

    /// Get a mojo by goal name
    fn get_mojo(&self, goal: &str) -> Option<Box<dyn Mojo>>;
}