Build with JDK 17 LTS

Since JDK 20 is out, there is no more jdk19 on ArchLinux, but kotlin compiler don't recognise JvmTarget 20 yet
This commit is contained in:
tarsin committed 2023-04-21 13:44:36 +08:00
1 parent 86a2d34f8e
commit 9d76132a5d
4 files changed
+9 -9

No files matched your search

+2 -2
View File
@@ -17,11 +17,11 @@ jobs:
with:
submodules: 'recursive'
- name: Setup Java 19
- name: Setup Java 17
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 19
java-version: 17
- name: Install NDK
run: |
+2 -2
View File
@@ -12,11 +12,11 @@ jobs:
with:
submodules: 'recursive'
- name: Setup Java 19
- name: Setup Java 17
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 19
java-version: 17
- name: Install NDK
run: |
+2 -2
View File
@@ -15,11 +15,11 @@ jobs:
with:
submodules: 'recursive'
- name: Setup Java 19
- name: Setup Java 17
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 19
java-version: 17
- name: Install NDK
run: |
+3 -3
View File
@@ -86,12 +86,12 @@ android {
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_19
targetCompatibility = JavaVersion.VERSION_19
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "19"
jvmTarget = "17"
freeCompilerArgs = listOf(
// https://kotlinlang.org/docs/compiler-reference.html#progressive
"-progressive",