Is there a way to force a dependency to use a specific classifier?


(Nathan Gutzmann) #1

We have an issue where we would like to use a specific classifier to resolve artifacts in some environments and a different one in other environments. From reading the documentation about the resolution strategy (http://www.gradle.org/docs/current/dsl/org.gradle.api.artifacts.ResolutionStrategy.html) it does not seem to support a notion of resolving an artifact by classifier. Is there a way to force a dependency to use a specific classifier to resolve an artifact?


(Peter Niederwieser) #2

See “50.4.1.3. Classifiers” in the Gradle User Guide.