This changes the Gradle build to always create multi-jdk tasks, and instead use the enabled property to determine whether the task is actually ran or not.
The has the following benefits:
IntelliJ and other tools understand the task execution graph (e.g. testJdk20 shows up as a task)
gw updateDependencyLocks discovers all configurations
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/apple/pkl/pull/1086
**Author:** [@bioball](https://github.com/bioball)
**Created:** 6/2/2025
**Status:** ✅ Merged
**Merged:** 6/3/2025
**Merged by:** [@bioball](https://github.com/bioball)
**Base:** `main` ← **Head:** `multi-jdk-testing-fix`
---
### 📝 Commits (1)
- [`5889666`](https://github.com/apple/pkl/commit/58896669b2532ff6d8ff086486a7cfe43addc2f3) Fix multi-jdk testing setup
### 📊 Changes
**5 files changed** (+21 additions, -25 deletions)
<details>
<summary>View changed files</summary>
📝 `buildSrc/src/main/kotlin/BuildInfo.kt` (+15 -15)
📝 `buildSrc/src/main/kotlin/pklJavaExecutable.gradle.kts` (+2 -3)
📝 `buildSrc/src/main/kotlin/pklJavaLibrary.gradle.kts` (+2 -1)
📝 `pkl-cli/pkl-cli.gradle.kts` (+1 -6)
📝 `pkl-tools/pkl-tools.gradle.kts` (+1 -0)
</details>
### 📄 Description
This changes the Gradle build to always create multi-jdk tasks, and instead use the `enabled` property to determine whether the task is actually ran or not.
The has the following benefits:
* IntelliJ and other tools understand the task execution graph (e.g. testJdk20 shows up as a task)
* `gw updateDependencyLocks` discovers all configurations
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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.
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/1086
Author: @bioball
Created: 6/2/2025
Status: ✅ Merged
Merged: 6/3/2025
Merged by: @bioball
Base:
main← Head:multi-jdk-testing-fix📝 Commits (1)
5889666Fix multi-jdk testing setup📊 Changes
5 files changed (+21 additions, -25 deletions)
View changed files
📝
buildSrc/src/main/kotlin/BuildInfo.kt(+15 -15)📝
buildSrc/src/main/kotlin/pklJavaExecutable.gradle.kts(+2 -3)📝
buildSrc/src/main/kotlin/pklJavaLibrary.gradle.kts(+2 -1)📝
pkl-cli/pkl-cli.gradle.kts(+1 -6)📝
pkl-tools/pkl-tools.gradle.kts(+1 -0)📄 Description
This changes the Gradle build to always create multi-jdk tasks, and instead use the
enabledproperty to determine whether the task is actually ran or not.The has the following benefits:
gw updateDependencyLocksdiscovers all configurations🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.