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

[Maven] Make sure correct classifier is used when downloading artifacts. #1634

Merged
merged 1 commit into from
Dec 23, 2021

Conversation

tgodzik
Copy link
Contributor

@tgodzik tgodzik commented Dec 22, 2021

Fixes #1627

@tgodzik tgodzik changed the title Don't download non default classifiers [Maven] Make sure correct classifier is used when downloading artifacts. Dec 23, 2021
@tgodzik tgodzik requested review from ckipp01 and adpi2 December 23, 2021 13:43
artifact.getVersion()
def resolveArtifact(artifact: Artifact, classifierOpt: Option[String] = None): Option[File] =
try {
val classifier = classifierOpt.orElse(Option(artifact.getClassifier())).getOrElse("")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This got reformatted, so best to use the Hide whitespace changes when reviewing.

Copy link
Member

@ckipp01 ckipp01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. LGTM!

@tgodzik tgodzik merged commit 75fb344 into scalacenter:master Dec 23, 2021
@tgodzik tgodzik deleted the fix-classifiers branch December 23, 2021 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Maven <classifier> is not correctly appended to artifact
2 participants