File tree Expand file tree Collapse file tree 1 file changed +6
-14
lines changed
Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -194,22 +194,14 @@ jobs:
194194 uses :
gittools/actions/gitversion/[email protected] 195195
196196 # region setup-JDK
197- - name : Setup JDK 26 EA for "java toolchain" of Gradle
198- if : startsWith(matrix.os, 'macos')
199- uses : jdx/mise-action@v2
200- with :
201- mise_toml : |
202- [tools]
203- "java" = { version = "openjdk-26", release_type = "ea" }
204- - name : Make JDK known to gradle (Linux, macOS)
197+ - name : Create ASDF config
205198 if : startsWith(matrix.os, 'macos')
206- shell : bash
207- # Hint by https://mise.jdx.dev/lang/java.html
208- run : mkdir -p ~/.asdf/installs/ && ln -s ~/.local/share/mise/installs/java ~/.asdf/installs/
209- - name : Make JDK known to gradle (Windows)
199+ run :
200+ cat > .tool-versions <<EOF
201+ java openjdk-26.ea.18
202+ - name : Setup JDK 26 EA for "java toolchain" of Gradle
210203 if : startsWith(matrix.os, 'macos')
211- shell : bash
212- run : mv ~/AppData/Local/mise ~/.asdf
204+ uses : asdf-vm/actions/install@v4
213205 - name : Tell gradle to use JDK 26
214206 if : startsWith(matrix.os, 'macos')
215207 run : sed -i '' "s/JavaLanguageVersion.of(25)/JavaLanguageVersion.of(26)/" build-logic/src/main/kotlin/buildlogic.java-common-conventions.gradle.kts
You can’t perform that action at this time.
0 commit comments