Dependency substitution support of classifiers

With gradle’s dependency management, support is declared for dependencies with classifiers as noted in the documentation in section (23.4.1.3. Classifiers):

https://docs.gradle.org/current/userguide/dependency_management.html

According to the documentation and trial testing, dependency substitution does not support classifiers, only group, module, and version:

https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.DependencySubstitutions.html#org.gradle.api.artifacts.DependencySubstitutions:module(java.lang.String)

This limitation in dependency substitution forces workarounds in the build system, such as manually redeploying artifacts to our local artifact repository and renaming the version without the classifier. Are there any plans to add support in dependency substitution for classifiers to avoid these workarounds?

Thanks!

3 Likes

Any update on this topic? I have the same issue…

There is an issue on Github https://github.com/gradle/gradle/issues/3880