mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 15:13:38 +01:00
[PR #262] [CLOSED] Add Gradle toolchain support #484
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?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/262
Author: @StefMa
Created: 2/28/2024
Status: ❌ Closed
Base:
main← Head:gradle-toolchain📝 Commits (7)
ff11f54Add Gradle toolchain support0371c2fMove toolchain version and vendor to single place and make them configurable2921b89Update development.adoccffa8e0Fix CI job5b2e95bUpdate CI config8338c17Remove unnecessary conversionad5df18Set javaLauncher for JavaExec tasks📊 Changes
12 files changed (+54 additions, -38 deletions)
View changed files
📝
.circleci/config.pkl(+2 -2)📝
.circleci/config.yml(+3 -3)📝
.circleci/jobs/GradleCheckJob.pkl(+3 -3)📝
DEVELOPMENT.adoc(+0 -2)📝
buildSrc/build.gradle.kts(+1 -14)➕
buildSrc/src/main/kotlin/JvmToolchain.kt(+13 -0)📝
buildSrc/src/main/kotlin/pklAllProjects.gradle.kts(+0 -7)📝
buildSrc/src/main/kotlin/pklFatJar.gradle.kts(+9 -2)📝
buildSrc/src/main/kotlin/pklJavaLibrary.gradle.kts(+9 -0)📝
buildSrc/src/main/kotlin/pklKotlinLibrary.gradle.kts(+5 -0)📝
buildSrc/src/main/kotlin/pklKotlinTest.gradle.kts(+5 -0)📝
settings.gradle.kts(+4 -5)📄 Description
fixes #184
With that we can get rid of the java 11 check and the information around it.
Also, we can "on the fly" update the jdk version the project will build on.
We only need "a" java version installed to start Gradle.
As discussed in the ticket, I also had to update Gradle to version 7.6 which (seems) brings flaky tests.
But we can't use toolchains before that version.
So maybe this PR wil hang here until this is fixed 🙃
Questions / Todos
I guess this is not going to work anymore (or has to be adjusted)
👉
2499e2c493/.circleci/config.pkl (L98C7-L107)I guess this is not going to work anymore (or has to be adjusted)
👉
2499e2c493/patches/graalVm23.patch (L25-L30)Let me know if there is more like these 🙃
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.