Class ProjectUtils
java.lang.Object
org.jfrog.gradle.plugin.artifactory.utils.ProjectUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Iterable<GradleDeployDetails>filterIncludeExcludeDetails(String projectPath, org.jfrog.build.extractor.clientConfiguration.ArtifactoryClientConfiguration.PublisherHandler publisher, Set<GradleDeployDetails> gradleDeployDetails, boolean isInclude) Filter (Include/Exclude) project deployment details by a given publisher configurations.static StringGet the ID (Group, artifact and version) from stored values.static StringgetId(org.gradle.api.artifacts.ModuleVersionIdentifier module) Get the ID (Group, artifact and version) of the given modulestatic StringgetId(org.gradle.api.Project project) Get the ID (Group, artifact and version) of the given modulestatic booleanhasOneOfComponents(org.gradle.api.Project project, String... componentNames) Check if a given project has at least one of the given componentsstatic booleanisRootProject(org.gradle.api.Project project)
-
Constructor Details
-
ProjectUtils
public ProjectUtils()
-
-
Method Details
-
isRootProject
public static boolean isRootProject(org.gradle.api.Project project) -
getId
Get the ID (Group, artifact and version) of the given module- Parameters:
project- - project to extract its Id- Returns:
- Gav identifier string of the module
-
getId
Get the ID (Group, artifact and version) from stored values. -
getId
Get the ID (Group, artifact and version) of the given module- Parameters:
module- - the module to extract the GAV info- Returns:
- Gav identifier string of the module or null if module is null
-
hasOneOfComponents
Check if a given project has at least one of the given components- Parameters:
project- - project to checkcomponentNames- - components names to check- Returns:
- true if the given project has at least one of the given components.
-
filterIncludeExcludeDetails
public static Iterable<GradleDeployDetails> filterIncludeExcludeDetails(String projectPath, org.jfrog.build.extractor.clientConfiguration.ArtifactoryClientConfiguration.PublisherHandler publisher, Set<GradleDeployDetails> gradleDeployDetails, boolean isInclude) Filter (Include/Exclude) project deployment details by a given publisher configurations. Uses projectPath string instead of Project reference.- Parameters:
projectPath- - project path of the given detailspublisher- - configurations to applygradleDeployDetails- - details to filterisInclude- - if true applying include-pattern or exclude-pattern if false- Returns:
- filtered details by the given input
-