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 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 {