Class NodeJsSetup
java.lang.Object
com.brunoritz.gradle.singularnode.nodejs.NodeJsSetup
Configures all tasks, repositories and dependencies required for installing NodeJS locally.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.gradle.api.tasks.TaskProvider<InstallNodeJsTask>configureNodeJsInstallation(org.gradle.api.Project project) Configures the project to support installing NodeJS.
-
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
nodeJsextension 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
installNodeJstask 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
- Creates a
-