Class PublishTask

  • All Implemented Interfaces:
    Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.TaskInternal, ExtensionAware, Task, org.gradle.util.Configurable<Task>

    public abstract class PublishTask
    extends CoreTask
    The task running the Publish command by invoking the Nyx.publish() method on the backing Nyx instance.
    • Constructor Detail

      • PublishTask

        @Inject
        public PublishTask​(NyxExtension extension)
        Standard constructor.
        Parameters:
        extension - the extension object. Cannot be null. This is injected by Gradle because it's passed as an optional constructor argument by the NyxPlugin definition method.
    • Method Detail

      • publish

        public void publish()
                     throws NyxException
        The actual business method for this task. This method runs the Nyx.publish() method on the shared singleton Nyx instance. Gradle knows this is the method to run upon task execution thanks to the TaskAction annotation.
        Throws:
        NyxException - in case of any exception when invoking the backing instance