Class DependencyDiscovery
java.lang.Object
com.palantir.gradle.dist.artifacts.DependencyDiscovery
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends org.gradle.api.artifacts.transform.TransformAction<P>,P extends org.gradle.api.artifacts.transform.TransformParameters>
voidconfigureJarTransform(org.gradle.api.Project project, Class<T> clazz, String targetArtifact, Consumer<P> configureParameters) static <T extends org.gradle.api.artifacts.transform.TransformAction<P>,P extends org.gradle.api.artifacts.transform.TransformParameters>
voidconfigureResourceTransform(org.gradle.api.Project project, Class<T> clazz, String targetArtifact, Consumer<P> configureParameters) static org.gradle.api.artifacts.ConfigurationcopyConfiguration(org.gradle.api.Project project, String configurationName, String name) Deprecated.This is not compatible with Gradle 9.static org.gradle.api.artifacts.ArtifactViewgetFilteredArtifact(org.gradle.api.Project project, org.gradle.api.artifacts.Configuration conf, String targetArtifact)
-
Field Details
-
ARTIFACT_FORMAT
-
-
Method Details
-
getFilteredArtifact
public static org.gradle.api.artifacts.ArtifactView getFilteredArtifact(org.gradle.api.Project project, org.gradle.api.artifacts.Configuration conf, String targetArtifact) -
copyConfiguration
@Deprecated public static org.gradle.api.artifacts.Configuration copyConfiguration(org.gradle.api.Project project, String configurationName, String name) Deprecated.This is not compatible with Gradle 9.This is not compatible with Gradle 9. This will be removed in version 4.0.0.Whatever consumes this will not be able to resolve it as it both a resolution root and a consumable variant. This is an error in Gradle 9. To resolve this, you need to split the configuration into both a resolvable configuration and a consumable configuration. As a result, this largely depends on what consumes this method.
You should reevaluate whether "copying" a configuration is actually required. It may be advantageous to have a standard consumable configuration that consumers can extend with their own provided configurations. An example of this in
ProductDependencies.registerProductDependencyTasks(org.gradle.api.Project, com.palantir.gradle.dist.BaseDistributionExtension). -
configureJarTransform
-
configureResourceTransform
-