Skip to content

Commit ede3e79

Browse files
Downgrade project to Java 17 (#309)
1 parent a902236 commit ede3e79

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

.github/workflows/ci_test_and_publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
uses: actions/setup-java@v3
2424
with:
2525
distribution: 'zulu'
26-
java-version: '21'
26+
java-version: '17'
2727

2828
- name: Upload Artifacts
2929
run: ./gradlew publishAllPublicationsToMavenCentralRepository --no-daemon --no-parallel
@@ -51,7 +51,7 @@ jobs:
5151
uses: actions/setup-java@v3
5252
with:
5353
distribution: 'zulu'
54-
java-version: '21'
54+
java-version: '17'
5555
- name: Run tests
5656
uses: reactivecircus/android-emulator-runner@v2
5757
with:

.github/workflows/sample_app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: actions/setup-java@v3
2121
with:
2222
distribution: 'zulu'
23-
java-version: '21'
23+
java-version: '17'
2424
- name: Build sample
2525
run: |
2626
./gradlew :affectedmoduledetector:publishToMavenLocal

affectedmoduledetector/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ plugins {
99
apply from: rootProject.file("gradle/jacoco.gradle")
1010

1111
java {
12-
sourceCompatibility = JavaVersion.VERSION_21
13-
targetCompatibility = JavaVersion.VERSION_21
12+
sourceCompatibility = JavaVersion.VERSION_17
13+
targetCompatibility = JavaVersion.VERSION_17
1414
}
1515

1616
kotlin {
17-
jvmToolchain(21)
17+
jvmToolchain(17)
1818
}
1919

2020
jacoco {

sample/sample-app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ android {
3232
}
3333
}
3434
compileOptions {
35-
sourceCompatibility JavaVersion.VERSION_21
36-
targetCompatibility JavaVersion.VERSION_21
35+
sourceCompatibility JavaVersion.VERSION_17
36+
targetCompatibility JavaVersion.VERSION_17
3737
}
3838
kotlinOptions {
39-
jvmTarget = '21'
39+
jvmTarget = '17'
4040
}
4141
}
4242

sample/sample-util/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ android {
3030
}
3131
}
3232
compileOptions {
33-
sourceCompatibility JavaVersion.VERSION_21
34-
targetCompatibility JavaVersion.VERSION_21
33+
sourceCompatibility JavaVersion.VERSION_17
34+
targetCompatibility JavaVersion.VERSION_17
3535
}
3636
kotlinOptions {
37-
jvmTarget = '21'
37+
jvmTarget = '17'
3838
}
3939
}
4040

0 commit comments

Comments
 (0)