Class NyxPlugin

  • All Implemented Interfaces:
    Plugin<Project>

    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 the apply(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 Detail

      • NyxPlugin

        public NyxPlugin()
        Default constructor.
    • Method Detail

      • apply

        public void apply​(Project project)
        Creates and registers all the plugin resources for the given project.
        Specified by:
        apply in interface Plugin<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