Package com.mooltiverse.oss.nyx.gradle
Class NyxPlugin
- java.lang.Object
-
- com.mooltiverse.oss.nyx.gradle.NyxPlugin
-
public class NyxPlugin extends Object implements Plugin<Project>
The main plugin class. This is the entry point used by Gradle to define the contents of the plugin: extension, tasks and other objects. When configuring the project, Gradle invokes theapply(Project)
method, which is in turn responsible for registering all the plugin resources. See Developing Custom Gradle Plugins for an introduction on custom Gradle plugin development.
-
-
Constructor Summary
Constructors Constructor Description NyxPlugin()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(Project project)
Creates and registers all the plugin resources for the given project.protected void
createExtensions(Project project)
Creates the plugin extensions for the project.protected void
defineTasks(Project project)
Sets up the tasks and dependencies to the project.
-
-
-
Field Detail
-
ID
public static final String ID
The plugin ID. Value is "com.mooltiverse.oss.nyx".- See Also:
- Constant Field Values
-
-
Method Detail
-
apply
public void apply(Project project)
Creates and registers all the plugin resources for the given project.- Specified by:
apply
in interfacePlugin<Project>
- Parameters:
project
- the project the plugin is applied to and resources created into- See Also:
Plugin.apply(Object)
-
createExtensions
protected void createExtensions(Project project)
Creates the plugin extensions for the project.- Parameters:
project
- the project to create the extension in
-
defineTasks
protected void defineTasks(Project project)
Sets up the tasks and dependencies to the project.- Parameters:
project
- the project to define the tasks in
-
-