Class TaskUtils
java.lang.Object
org.jfrog.gradle.plugin.artifactory.utils.TaskUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.gradle.api.tasks.TaskProvider<ArtifactoryTask>addCollectDeployDetailsTask(org.gradle.api.Project project) Adds to a given project a task to collect all the publications and information to be deployed.static voidaddDeploymentTask(org.gradle.api.Project project) Adds a task to deploy the artifacts of a given project, extract information on the build and deploy it.static voidaddExtractModuleInfoTask(org.gradle.api.tasks.TaskProvider<ArtifactoryTask> collectDeployDetailsTask, org.gradle.api.Project project) Adds a task that will run after the given collectDeployDetailsTask task and will extract module info file from the information collected.static voidconfigureBuildService(org.gradle.api.Project project, org.gradle.api.provider.Provider<ArtifactoryBuildService> serviceProvider) Configure the BuildService on all relevant tasks.
-
Constructor Details
-
TaskUtils
public TaskUtils()
-
-
Method Details
-
addCollectDeployDetailsTask
public static org.gradle.api.tasks.TaskProvider<ArtifactoryTask> addCollectDeployDetailsTask(org.gradle.api.Project project) Adds to a given project a task to collect all the publications and information to be deployed.- Parameters:
project- - the module to collect information from- Returns:
- - taskProvider that was created for the given module
-
addExtractModuleInfoTask
public static void addExtractModuleInfoTask(org.gradle.api.tasks.TaskProvider<ArtifactoryTask> collectDeployDetailsTask, org.gradle.api.Project project) Adds a task that will run after the given collectDeployDetailsTask task and will extract module info file from the information collected. An ExtractModuleTask task will be added (if not exists) to the given task's project. extract module task is responsible for extracting module details, artifacts and dependencies. artifactoryTask is responsible for collecting deployment details from a project's publications. It figures out what needs to be deployed and how it should be deployed. deploymentTask is responsible for execute the deployment of artifacts and build-info to Artifactory for the entire build.- Parameters:
collectDeployDetailsTask- - the task that will provide the information to produce the module info fileproject- - the project that the collectDeployDetailsTask is configured in to register the new task in it.
-
addDeploymentTask
public static void addDeploymentTask(org.gradle.api.Project project) Adds a task to deploy the artifacts of a given project, extract information on the build and deploy it.- Parameters:
project- - project to add the task to, should be the root project
-
configureBuildService
public static void configureBuildService(org.gradle.api.Project project, org.gradle.api.provider.Provider<ArtifactoryBuildService> serviceProvider) Configure the BuildService on all relevant tasks.
-