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.
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.
Sidenote: seems like every sub-project needs to be included here because naked ./gradlew dependencies only shows dependencies on the root project: https://github.com/gradle/gradle/issues/17829
@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/50219857
So, this would work:
```
./gradlew \
bench:dependencies \
docs:dependencies \
pkl-cli:dependencies \
pkl-codegen-java:dependencies \
pkl-codegen-kotlin:dependencies \
pkl-commons:dependencies \
pkl-commons-cli:dependencies \
pkl-commons-test:dependencies \
pkl-config-java:dependencies \
pkl-config-kotlin:dependencies \
pkl-core:dependencies \
pkl-doc:dependencies \
pkl-executor:dependencies \
pkl-gradle:dependencies \
pkl-server:dependencies \
pkl-tools:dependencies \
stdlib:dependencies
```
Sidenote: seems like every sub-project needs to be included here because naked `./gradlew dependencies` only shows dependencies on the root project: https://github.com/gradle/gradle/issues/17829
./gradlew dependencies only shows dependencies on the root project
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 the bench:spotlessJava task 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!
@rafaelrc7 commented on GitHub (Feb 6, 2024):
> ./gradlew dependencies only shows dependencies on the root project
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 the `bench:spotlessJava` task 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!
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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!