From 48c7b26539b4b209f6414a32006ce8377b72fe8e Mon Sep 17 00:00:00 2001 From: eliflores Date: Thu, 18 Aug 2022 21:05:39 +0200 Subject: [PATCH] Migrate to Java 17 Needed also in order to move to actions/setup-java@v3 and use the temurin distribution. Signed-off-by: eliflores --- .github/workflows/ci.yml | 4 ++-- .github/workflows/codeql-analysis.yml | 2 +- build.gradle | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 042b612..43ab222 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,11 +14,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Set up JDK 14 + - name: Set up JDK 17 uses: actions/setup-java@v3 with: distribution: 'temurin' - java-version: '14' + java-version: '17' - name: Grant execute permission for gradlew run: chmod +x gradlew diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 51ae98d..9d21b7f 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -32,7 +32,7 @@ jobs: - uses: actions/setup-java@v3 with: distribution: 'temurin' - java-version: 14 + java-version: 17 - name: Validate Gradle wrapper uses: gradle/wrapper-validation-action@v1 diff --git a/build.gradle b/build.gradle index 91064f0..53d39e8 100644 --- a/build.gradle +++ b/build.gradle @@ -22,14 +22,14 @@ dependencies { testImplementation 'com.github.tomakehurst:wiremock:2.27.2' } -java.sourceCompatibility = JavaVersion.VERSION_14 +java.sourceCompatibility = JavaLanguageVersion.of(17) publishing { publications { maven(MavenPublication) { groupId = 'com.github.eliflores.tools' artifactId = 'eliflores-little-tools' - version = "0.0.1-rc-1" + version = "0.0.1-rc-2" from components.java pom {