Switch to Java 17
This commit is contained in:
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -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') }}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user