public class ProjectUtils
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProjectUtils.IncludeExcludePredicate |
static class |
ProjectUtils.ProjectPredicate |
| Constructor and Description |
|---|
ProjectUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Iterable<GradleDeployDetails> |
filterIncludeExcludeDetails(org.gradle.api.Project project,
org.jfrog.build.extractor.clientConfiguration.ArtifactoryClientConfiguration.PublisherHandler publisher,
java.util.Set<GradleDeployDetails> gradleDeployDetails,
boolean isInclude)
Filter (Include/Exclude) project deployment details by a given publisher configurations
|
static java.lang.String |
getId(org.gradle.api.artifacts.ModuleVersionIdentifier module)
Get the ID (Group, artifact and version) of the given module
|
static java.lang.String |
getId(org.gradle.api.Project project)
Get the ID (Group, artifact and version) of the given module
|
static boolean |
hasOneOfComponents(org.gradle.api.Project project,
java.lang.String... componentNames)
Check if a given project has at least one of the given components
|
static boolean |
isRootProject(org.gradle.api.Project project) |
public static boolean isRootProject(org.gradle.api.Project project)
public static java.lang.String getId(org.gradle.api.Project project)
project - - project to extract its Idpublic static java.lang.String getId(org.gradle.api.artifacts.ModuleVersionIdentifier module)
module - - the module to extract the GAV infopublic static boolean hasOneOfComponents(org.gradle.api.Project project,
java.lang.String... componentNames)
project - - project to checkcomponentNames - - components names to checkpublic static java.lang.Iterable<GradleDeployDetails> filterIncludeExcludeDetails(org.gradle.api.Project project, org.jfrog.build.extractor.clientConfiguration.ArtifactoryClientConfiguration.PublisherHandler publisher, java.util.Set<GradleDeployDetails> gradleDeployDetails, boolean isInclude)
project - - project of the given detailspublisher - - configurations to applygradleDeployDetails - - details to filterisInclude - - if true applying include-pattern or exclude-pattern if false