Skip to content

Commit 7ac91c7

Browse files
committed
Java 17
1 parent 13bda8a commit 7ac91c7

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

.github/workflows/Android-CI-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: actions/setup-java@v3
1919
with:
2020
distribution: "adopt"
21-
java-version: 11
21+
java-version: 17
2222
- name: Get the version
2323
id: tagger
2424
uses: jimschubert/query-tag-action@v2

.github/workflows/Android-CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: macOS-latest
1313
strategy:
1414
matrix:
15-
java_version: [ 11 ]
15+
java_version: [ 17 ]
1616
steps:
1717
- name: Checkout
1818
uses: actions/[email protected]
@@ -59,7 +59,7 @@ jobs:
5959
runs-on: ubuntu-latest
6060
strategy:
6161
matrix:
62-
java_version: [ 11 ]
62+
java_version: [ 17 ]
6363
steps:
6464
- name: Checkout
6565
uses: actions/[email protected]

MPChartExample/build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ android {
1414
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1515
testInstrumentationRunnerArguments useTestStorageService: 'true'
1616
}
17-
17+
compileOptions {
18+
sourceCompatibility JavaVersion.VERSION_17
19+
targetCompatibility JavaVersion.VERSION_17
20+
}
21+
kotlinOptions {
22+
jvmTarget = '17'
23+
}
1824
buildTypes {
1925
release {
2026
minifyEnabled false

MPChartLib/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ android {
2525

2626
consumerProguardFiles 'proguard-project.txt'
2727
}
28+
compileOptions {
29+
sourceCompatibility JavaVersion.VERSION_17
30+
targetCompatibility JavaVersion.VERSION_17
31+
}
2832
buildTypes {
2933
release {
3034
minifyEnabled false

jitpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
jdk:
2-
- openjdk11
2+
- openjdk17
33
install:
44
- ./gradlew :MPChartLib:build :MPChartLib:publishToMavenLocal -x :MPChartLib:test
55
- find . -name "*.aar"

0 commit comments

Comments
 (0)