From 54c9b2088dedeae3730f8a03257c8f06d2218f30 Mon Sep 17 00:00:00 2001 From: James Fredley Date: Mon, 21 Oct 2024 12:27:50 -0400 Subject: [PATCH 1/2] use liberica and run on java 17, 21 and 23 --- .github/workflows/gradle.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 1ab3ed8f..bab454a6 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: ['17'] + java: ['17', '21', '23'] env: RUN_TESTS_ONLY: false steps: @@ -31,7 +31,7 @@ jobs: - name: Set up JDK uses: actions/setup-java@v4 with: - distribution: 'adopt' + distribution: 'liberica' java-version: ${{ matrix.java }} - name: Run Build id: build From be1dbc5781a5ca54e5e562d7e969a1a595496649 Mon Sep 17 00:00:00 2001 From: James Fredley Date: Wed, 23 Oct 2024 15:48:24 -0400 Subject: [PATCH 2/2] use Gradle release flag instead of java toolchain --- build.gradle | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 55745569..4b5aac6d 100644 --- a/build.gradle +++ b/build.gradle @@ -42,10 +42,8 @@ subprojects { } apply plugin: 'java' - java { - toolchain { - languageVersion = JavaLanguageVersion.of(17) - } + compileJava { + options.release = 17 } dependencies {