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

jvm: fix fetching artifacts with non-jar packaging #16358

Merged
merged 4 commits into from Aug 2, 2022

Conversation

tdyas
Copy link
Contributor

@tdyas tdyas commented Jul 29, 2022

Fix fetching artifacts that have non-jar packaging, e.g. protoc plugin binaries distributed via Maven Central:

  1. Allow coordinate strings used in JvmToolBase to provide packaging and classifier items by not limiting the number of :-separated fields.
  2. Pass -A option to Coursier with an explicit list of artifact types ("packaging" in Pants parlance) to retain because Courser only fetches non-jar artifact types if passed this option. This is necessary in addition to also passing the coordinate with the desired artifact type.

[ci skip-rust]

[ci skip-build-wheels]

@tdyas tdyas added the category:bugfix Bug fixes for released features label Jul 29, 2022
@tdyas
Copy link
Contributor Author

tdyas commented Aug 1, 2022

ping

Tom Dyas and others added 3 commits August 2, 2022 11:29
Co-authored-by: Stu Hood <stuhood@gmail.com>
# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
[ci skip-build-wheels]
@Eric-Arellano Eric-Arellano removed their request for review August 2, 2022 15:44
[ci skip-build-wheels]
@tdyas tdyas merged commit 101fc42 into pantsbuild:main Aug 2, 2022
@tdyas tdyas deleted the jvm_coursier_nonjar_type branch August 2, 2022 18:28
cczona pushed a commit to cczona/pants that referenced this pull request Sep 1, 2022
Fix fetching artifacts that have non-jar packaging, e.g. protoc plugin binaries distributed via Maven Central:
1. Allow coordinate strings used in `JvmToolBase` to provide packaging and classifier items by not limiting the number of `:`-separated fields.
2. Pass `-A` option to Coursier with an explicit list of artifact types ("packaging" in Pants parlance) to retain because Courser only fetches non-jar artifact types if passed this option. This is necessary in addition to also passing the coordinate with the desired artifact type.

[ci skip-rust]

[ci skip-build-wheels]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bugfix Bug fixes for released features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants