mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
Gradle task to only download dependencies #35
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rafaelrc7 on GitHub (Feb 6, 2024).
Hello, I'm trying to package pkl to NixOS. However, to this end, I would ideally need a gradle task that only downloads the dependencies, without trying to build the program. Does the project has something like this?
Thanks.
@bioball commented on GitHub (Feb 6, 2024):
Looks like you should be able to run
dependencies, which will download dependencies as a side-effect: https://stackoverflow.com/a/50219857So, this would work:
Sidenote: seems like every sub-project needs to be included here because naked
./gradlew dependenciesonly shows dependencies on the root project: https://github.com/gradle/gradle/issues/17829@rafaelrc7 commented on GitHub (Feb 6, 2024):
Aha, that was what I was stuck with, thanks a lot!
This solved most of the problems, but curiously, there seems to be at least one dependency,
com.google.googlejavaformat:google-java-format:1.15.0, that did not get pulled by this. I had to add thebench:spotlessJavatask to the command to pull this one too.I'm still going through errors as they appear. But I believe this part is solved.
Thanks for the quick response!