Class NodeJsSetup

java.lang.Object
com.brunoritz.gradle.singularnode.nodejs.NodeJsSetup

public final class NodeJsSetup extends Object
Configures all tasks, repositories and dependencies required for installing NodeJS locally.
  • Method Details

    • configureNodeJsInstallation

      public static org.gradle.api.tasks.TaskProvider<InstallNodeJsTask> configureNodeJsInstallation(org.gradle.api.Project project)
      Configures the project to support installing NodeJS. In particular, this method
      • Creates a nodeJs extension via which the installation can be customized
      • Creates an Ivy repository that is used to fetch the NodeJS archive from
      • Creates a depdency configuration for the specific NdeJS version
      • Creates an installNodeJs task that performs the actual installation
      Parameters:
      project - The project that shall provide installation support (normally the root project)
      Returns:
      The task that performs the actual installation