Skip to content

Commit c270f71

Browse files
update jvm target
1 parent b9a0203 commit c270f71

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,14 @@ jobs:
2828
with:
2929
java-version: '17'
3030
distribution: 'temurin'
31-
# cache: gradle
3231
- name: Grant execute permission for gradlew
3332
run: chmod +x gradlew
33+
34+
- name: Setup Gradle cache
35+
uses: gradle/gradle-build-action@v2
36+
with:
37+
gradle-version: wrapper
38+
3439
- name: Clean all modules
3540
run: ./gradlew cleanAllModules
3641
- name: ${{ inputs.action }}

odp/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ android {
4848
buildToolsVersion build_tools_version
4949

5050
kotlinOptions {
51-
jvmTarget = '1.8'
51+
jvmTarget = '17'
5252
}
5353
}
5454

@@ -57,6 +57,8 @@ dependencies {
5757
implementation "androidx.annotation:annotation:$annotations_ver"
5858
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
5959
implementation "androidx.work:work-runtime:$work_runtime"
60+
// Add SLF4J API for Logger interface
61+
implementation "org.slf4j:slf4j-api:1.7.32"
6062

6163
testImplementation "junit:junit:$junit_ver"
6264
testImplementation "org.mockito:mockito-core:$mockito_ver"
@@ -74,4 +76,5 @@ dependencies {
7476

7577
androidTestImplementation "org.mockito:mockito-core:$mockito_ver"
7678
androidTestImplementation "org.mockito:mockito-android:$mockito_ver"
79+
androidTestImplementation "org.slf4j:slf4j-api:1.7.32"
7780
}

0 commit comments

Comments
 (0)