From 9a18e85a16b98c1d642d04699aa0dd70958fc27f Mon Sep 17 00:00:00 2001 From: novalisdenahi Date: Fri, 30 May 2025 14:50:54 +0200 Subject: [PATCH] Fix java-ci build, not use java 8 --- .github/workflows/java-ci.yml | 2 +- build.gradle | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/java-ci.yml b/.github/workflows/java-ci.yml index 43c3c46..d0294d0 100644 --- a/.github/workflows/java-ci.yml +++ b/.github/workflows/java-ci.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java-versions: [8, 11, 17, 19 ] + java-versions: [11, 17, 19 ] fail-fast: false steps: - uses: actions/checkout@v4 diff --git a/build.gradle b/build.gradle index 2b19be7..7e2293b 100644 --- a/build.gradle +++ b/build.gradle @@ -24,6 +24,9 @@ plugins { group = 'com.configcat' version = '1.1.1' +sourceCompatibility = JavaVersion.VERSION_1_8 +targetCompatibility = JavaVersion.VERSION_1_8 + repositories { mavenCentral() } @@ -44,10 +47,6 @@ if(hasProperty('target') && target == 'android') { minSdkVersion 14 targetSdkVersion 25 } - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 - } // Rename the aar correctly libraryVariants.all { variant ->