Skip to content

Commit b2b47d8

Browse files
committed
Fix inconsistent JVM-target
1 parent 1df6622 commit b2b47d8

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

library/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ android {
2828
}
2929
}
3030
compileOptions {
31-
sourceCompatibility JavaVersion.VERSION_1_8
32-
targetCompatibility JavaVersion.VERSION_1_8
31+
sourceCompatibility JavaVersion.VERSION_21
32+
targetCompatibility JavaVersion.VERSION_21
3333
}
34+
3435
kotlinOptions {
35-
jvmTarget = '1.8'
36+
jvmTarget = '21'
3637
}
3738
}
3839

opencv/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ println "OpenCV: " +openCVersionName + " " + project.buildscript.sourceFile
9898

9999
android {
100100
namespace 'org.opencv'
101-
compileSdkVersion 26
101+
compileSdkVersion 30
102102

103103
defaultConfig {
104104
minSdkVersion 21
@@ -129,9 +129,10 @@ android {
129129
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
130130
}
131131
}
132+
132133
compileOptions {
133-
sourceCompatibility JavaVersion.VERSION_1_6
134-
targetCompatibility JavaVersion.VERSION_1_6
134+
sourceCompatibility JavaVersion.VERSION_21
135+
targetCompatibility JavaVersion.VERSION_21
135136
}
136137

137138
sourceSets {

sample/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ android {
2929
}
3030

3131
compileOptions {
32-
sourceCompatibility JavaVersion.VERSION_11
33-
targetCompatibility JavaVersion.VERSION_11
32+
sourceCompatibility JavaVersion.VERSION_21
33+
targetCompatibility JavaVersion.VERSION_21
3434
}
3535

3636
kotlinOptions {
37-
jvmTarget = '1.8'
37+
jvmTarget = '21'
3838
freeCompilerArgs += [
3939
"-Xopt-in=kotlin.RequiresOptIn",
4040
]

0 commit comments

Comments
 (0)