From 757dedcfa2d83eccabdb8e07815618ae7716a7db Mon Sep 17 00:00:00 2001 From: Niko Diamadis Date: Fri, 9 Jun 2023 15:53:41 +0200 Subject: [PATCH] Switch to Java 17 --- .github/workflows/main.yml | 2 +- app/build.gradle | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7bf74f2..4d57671 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-java@v1 with: - java-version: 11 + java-version: 17 - if: ${{ !startsWith(github.ref, 'refs/tags/v') }} run: ./gradlew build --stacktrace - if: ${{ startsWith(github.ref, 'refs/tags/v') }} diff --git a/app/build.gradle b/app/build.gradle index 7220e8e..a9c92a4 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -33,11 +33,11 @@ android { viewBinding true } compileOptions { - sourceCompatibility JavaVersion.VERSION_11 - targetCompatibility JavaVersion.VERSION_11 + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 } kotlinOptions { - jvmTarget = '11' + jvmTarget = '17' } packagingOptions { resources {