-
Notifications
You must be signed in to change notification settings - Fork 41
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
Create toolchains.xml dynamically based on envs #136
Conversation
a5d1937
to
32e30a2
Compare
Thanks for the PR! Quick question prior to a full review: have you checked that it is OK to omit the '' element from the entries in |
Also, can you please push this without the changes to the (Long term we need to find a better way to manage the |
I guess you mean the vendor? I didn't run a test but I looked up the jdk maven toolchain specification which requires only the jdk home. But after thinking about it again, I guess! it would be needed/helpful for Gradle Toolchains which also uses the vendor. |
Hah, yes I typed I suspect that Gradle is only using the env vars to locate the JDK, and then executing Ideally, we'd omit anything redundant (like "Eclipse"), especially if it's hard-coded and possibly incorrect. |
Yes, you are right, Gradle just extracts the env entries and calls |
Closed by #150 |
Thanks for the contribution @hfhbd! That said, there's one small improvement that would be nice. If you're willing to help out, this would be a nice experiment to see how the new CI process works with a forked repository. Ideally, you'll be able to enable the actions for your fork and everything should pass in your repo. Then the workflows should be applied in this repo once your PR is submitted and the workflows approved. I'm sure there will be some things not working, but hopefully the process will be smoother. |
Fixes #89
The GitHub runners contain the
JAVA_HOME_
envs by default (even withoutsetup-java
), so we can use the envs to create the toolchain.xml dynamically.