public class TaskUtils
extends java.lang.Object
| Constructor and Description |
|---|
TaskUtils() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
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.
|
static ArtifactoryTask |
findExecutedCollectionTask(org.gradle.api.Project project)
Find a ArtifactoryTask of a given project that finished to execute or null if not exists.
|
static java.util.List<ArtifactoryTask> |
getAllArtifactoryPublishTasks(org.gradle.api.Project project)
Get a list of all the ArtifactoryTask tasks of a given project and its submodules
|
public static org.gradle.api.tasks.TaskProvider<ArtifactoryTask> addCollectDeployDetailsTask(org.gradle.api.Project project)
project - - the module to collect information frompublic static void addExtractModuleInfoTask(org.gradle.api.tasks.TaskProvider<ArtifactoryTask> collectDeployDetailsTask, org.gradle.api.Project project)
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.public static void addDeploymentTask(org.gradle.api.Project project)
project - - project to add the task to, should be the root projectpublic static ArtifactoryTask findExecutedCollectionTask(org.gradle.api.Project project)
project - - a project to search for a finished taskpublic static java.util.List<ArtifactoryTask> getAllArtifactoryPublishTasks(org.gradle.api.Project project)
project - - project to get its related tasks