Skip to content

Commit 42f4bad

Browse files
Merge pull request #5 from configcat/move-to-maven-central
Fix java-ci build, not use java 8
2 parents db5fbe6 + 9a18e85 commit 42f4bad

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/java-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
java-versions: [8, 11, 17, 19 ]
17+
java-versions: [11, 17, 19 ]
1818
fail-fast: false
1919
steps:
2020
- uses: actions/checkout@v4

build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ plugins {
2424
group = 'com.configcat'
2525
version = '1.1.1'
2626

27+
sourceCompatibility = JavaVersion.VERSION_1_8
28+
targetCompatibility = JavaVersion.VERSION_1_8
29+
2730
repositories {
2831
mavenCentral()
2932
}
@@ -44,10 +47,6 @@ if(hasProperty('target') && target == 'android') {
4447
minSdkVersion 14
4548
targetSdkVersion 25
4649
}
47-
compileOptions {
48-
sourceCompatibility JavaVersion.VERSION_1_8
49-
targetCompatibility JavaVersion.VERSION_1_8
50-
}
5150

5251
// Rename the aar correctly
5352
libraryVariants.all { variant ->

0 commit comments

Comments
 (0)