Class FrontendGradlePlugin

  • All Implemented Interfaces:
    org.gradle.api.Plugin<org.gradle.api.Project>

    public class FrontendGradlePlugin
    extends java.lang.Object
    implements org.gradle.api.Plugin<org.gradle.api.Project>
    Main plugin class that bootstraps the plugin by declaring its DSL and its tasks.
    • The plugin applies the Gradle Base plugin, to attach its tasks to the Gradle lifecyle task.
    • Tasks are registered lazily thanks to the use of the configuration avoidance API.
    • Task properties are mapped the plugin extension (DSL) using the lazy configuration API, allowing there calculation is delayed until it is required.
    See Also:
    Task configuration avoidance, Lazy configuration
    • Field Detail

      • ASSEMBLE_TASK_NAME

        public static final java.lang.String ASSEMBLE_TASK_NAME
        Name of the task that assembles the frontend.
        See Also:
        Constant Field Values
      • CHECK_TASK_NAME

        public static final java.lang.String CHECK_TASK_NAME
        Name of the task that checks the frontend.
        See Also:
        Constant Field Values
      • CLEAN_TASK_NAME

        public static final java.lang.String CLEAN_TASK_NAME
        Name of the task that cleans the frontend.
        See Also:
        Constant Field Values
      • PUBLISH_TASK_NAME

        public static final java.lang.String PUBLISH_TASK_NAME
        Name of the task that publishes the frontend.
        See Also:
        Constant Field Values
      • DEFAULT_NODE_INSTALL_DIRNAME

        public static final java.lang.String DEFAULT_NODE_INSTALL_DIRNAME
        Name of the task that installs a Node distribution.
        See Also:
        Constant Field Values
      • DEFAULT_YARN_INSTALL_DIRNAME

        public static final java.lang.String DEFAULT_YARN_INSTALL_DIRNAME
        Name of the task that installs a Yarn distribution.
        See Also:
        Constant Field Values
      • INSTALL_TASK_NAME

        public static final java.lang.String INSTALL_TASK_NAME
        Name of the task that installs frontend dependencies.
        See Also:
        Constant Field Values
      • NODE_INSTALL_TASK_NAME

        public static final java.lang.String NODE_INSTALL_TASK_NAME
        Name of the task that installs a Node distribution.
        See Also:
        Constant Field Values
      • YARN_INSTALL_TASK_NAME

        public static final java.lang.String YARN_INSTALL_TASK_NAME
        Name of the task that installs a Yarn distribution.
        See Also:
        Constant Field Values
      • GRADLE_ASSEMBLE_TASK_NAME

        public static final java.lang.String GRADLE_ASSEMBLE_TASK_NAME
        See Also:
        Constant Field Values
      • GRADLE_CHECK_TASK_NAME

        public static final java.lang.String GRADLE_CHECK_TASK_NAME
        See Also:
        Constant Field Values
      • GRADLE_CLEAN_TASK_NAME

        public static final java.lang.String GRADLE_CLEAN_TASK_NAME
        See Also:
        Constant Field Values
      • MAVEN_GENERAL_PUBLISH_TASK_NAME

        public static final java.lang.String MAVEN_GENERAL_PUBLISH_TASK_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • FrontendGradlePlugin

        public FrontendGradlePlugin()
    • Method Detail

      • apply

        public void apply​(org.gradle.api.Project project)
        Specified by:
        apply in interface org.gradle.api.Plugin<org.gradle.api.Project>