Skip to content

Commit 49a2cea

Browse files
committed
ci: Matrix builds now building the project with available JDK instead of using Gradle's toolchain.
1 parent 1915f93 commit 49a2cea

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ jobs:
2525
java-version: ${{ matrix.java-version }}
2626
cache: 'gradle'
2727
- name: Build
28-
run: ./gradlew build
28+
env:
29+
RSQL_PARSER_GRADLE_USE_TOOLCHAIN: false
30+
run: ./gradlew buildEnvironment build
2931
- uses: codecov/codecov-action@v5
3032
if: matrix.java-version == 8
3133
with:

build.gradle.kts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ java {
2020
withSourcesJar()
2121
withJavadocJar()
2222

23-
toolchain {
24-
languageVersion.set(JavaLanguageVersion.of(8))
23+
val useToolchain = System.getenv("RSQL_PARSER_GRADLE_USE_TOOLCHAIN")?.toBoolean() ?: true
24+
25+
if (useToolchain) {
26+
toolchain {
27+
languageVersion.set(JavaLanguageVersion.of(8))
28+
}
2529
}
2630
}
2731

0 commit comments

Comments
 (0)