generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Register pre-installed JDKs in .m2/toolchains.xml
Since adding these to the `org.gradle.java.installations.fromEnv` property is problematic (#1024), this mechanism allows the default toolchains to be discovered by Gradle via a different mechanism. The default JDK installations are added to `~/.m2/toolchains.xml` such that they are discoverable by Gradle toolchain support. The `setup-java` action also writes to this file, so we merge with any existing content: this allows both pre-installed and "setup" JDKs to be automatically detected by Gradle.
- Loading branch information
Showing
5 changed files
with
110 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<toolchains> | ||
<!-- JDK Toolchains installed by default on GitHub-hosted runners --> | ||
<toolchain> | ||
<type>jdk</type> | ||
<provides> | ||
<version>8</version> | ||
<vendor>Eclipse Temurin</vendor> | ||
</provides> | ||
<configuration> | ||
<jdkHome>${env.JAVA_HOME_8_X64}</jdkHome> | ||
</configuration> | ||
</toolchain> | ||
<toolchain> | ||
<type>jdk</type> | ||
<provides> | ||
<version>11</version> | ||
<vendor>Eclipse Temurin</vendor> | ||
</provides> | ||
<configuration> | ||
<jdkHome>${env.JAVA_HOME_11_X64}</jdkHome> | ||
</configuration> | ||
</toolchain> | ||
<toolchain> | ||
<type>jdk</type> | ||
<provides> | ||
<version>17</version> | ||
<vendor>Eclipse Temurin</vendor> | ||
</provides> | ||
<configuration> | ||
<jdkHome>${env.JAVA_HOME_17_X64}</jdkHome> | ||
</configuration> | ||
</toolchain> | ||
<toolchain> | ||
<type>jdk</type> | ||
<provides> | ||
<version>21</version> | ||
<vendor>Eclipse Temurin</vendor> | ||
</provides> | ||
<configuration> | ||
<jdkHome>${env.JAVA_HOME_21_X64}</jdkHome> | ||
</configuration> | ||
</toolchain> | ||
</toolchains> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters