forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds the `jar` field to `jvm_artifact`, which allows users to check a JAR file into the repository, and use that to fulfil dependencies as needed. This is because sandboxing is generally incompatible with file URLs, so we make use of Pants' existing filesystem support. This requires a small bit of weirdness -- firstly, Coursier requires absolute file URLs, which Pants' sandboxing doesn't really like, so so `coursier_wrapper.sh` now preprocesses any args containing a placeholder to use the actual current working directory. Secondly, `ArtifactRequirements` are now preprocessed to check if a requirement uses a local JVM artifact, and builds a digest creating those JARs and sets the URL to be the file URL with the working directory placeholder. This closes pantsbuild#13820
- Loading branch information
Christopher Neugebauer
authored
Dec 8, 2021
1 parent
c1632cc
commit f6a46d7
Showing
3 changed files
with
104 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters