Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document lack of support for classifiers #292

Open
mjustin opened this issue Jan 5, 2021 · 0 comments
Open

Document lack of support for classifiers #292

mjustin opened this issue Jan 5, 2021 · 0 comments

Comments

@mjustin
Copy link

mjustin commented Jan 5, 2021

Per #67, classifiers are not supported in the dependency management plugin. However, the only thing in the documentation that relates to classifiers is specifically talking about their use in exclusions, and not their use in a dependency version:

Gradle does not provide an API for accessing a dependency’s classifier during resolution. Unfortunately, this means that dependency management-based exclusions will not work when a classifier is involved.

It would be helpful if the documentation made it clear that classifiers cannot be specified on dependencies, and not just that classifiers don't work with exclusions.

For instance, the following does not pick the version of the dependency with the "general" classifier (and fails to do so silently):

dependencyManagement {
    dependencies {
        dependency 'com.querydsl:querydsl-apt:4.2.2:general' // INVALID
    }
}

Related Stack Overflow issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants