Skip to content

Commit e927884

Browse files
committed
Explicitly specify Java 17
1 parent 9057ccd commit e927884

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/ci.yml

+6
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v2
1414

15+
- name: "Setup Java"
16+
uses: actions/setup-java@v4
17+
with:
18+
distribution: 'temurin'
19+
java-version: '17'
20+
1521
- name: Get Gradle wrapper
1622
working-directory: DailyDemo
1723
run: gradle wrapper --gradle-version 8.4

DailyDemo/app/build.gradle

+5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,16 @@ android {
1616
versionCode 1
1717
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1818
}
19+
1920
compileOptions {
2021
sourceCompatibility JavaVersion.VERSION_17
2122
targetCompatibility JavaVersion.VERSION_17
2223
}
2324

25+
kotlinOptions {
26+
jvmTarget = JavaVersion.VERSION_17
27+
}
28+
2429
buildTypes {
2530
release {
2631
minifyEnabled false

0 commit comments

Comments
 (0)