Skip to content

Commit e5e805e

Browse files
Address review comments
1 parent 1fff44e commit e5e805e

File tree

7 files changed

+15
-14
lines changed

7 files changed

+15
-14
lines changed

android-core/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ android {
1313
exclude 'META-INF/LICENSE'
1414
}
1515
compileOptions {
16-
sourceCompatibility JavaVersion.VERSION_17
17-
targetCompatibility JavaVersion.VERSION_17
16+
sourceCompatibility JavaVersion.toVersion(JAVA_VERSION)
17+
targetCompatibility JavaVersion.toVersion(JAVA_VERSION)
1818
}
1919

2020
String url = '\"\"'

android-kit-base/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ android {
3737
}
3838

3939
compileOptions {
40-
sourceCompatibility JavaVersion.VERSION_17
41-
targetCompatibility JavaVersion.VERSION_17
40+
sourceCompatibility JavaVersion.toVersion(JAVA_VERSION)
41+
targetCompatibility JavaVersion.toVersion(JAVA_VERSION)
4242
}
4343
}
4444

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ org.gradle.jvmargs=-Xmx2560m
55
#-XX:ThreadStackSize=4096 -XX:CompilerThreadStackSize=4096
66
android.defaults.buildfeatures.buildconfig=true
77
systemProp.org.gradle.kotlin.dsl.precompiled.accessors.strict=true
8+
JAVA_VERSION=17

kit-plugin/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ dependencies {
1414
}
1515

1616
compileGroovy {
17-
sourceCompatibility = JavaVersion.VERSION_17
18-
targetCompatibility = JavaVersion.VERSION_17
17+
sourceCompatibility = JavaVersion.toVersion(JAVA_VERSION)
18+
targetCompatibility = JavaVersion.toVersion(JAVA_VERSION)
1919
}
2020

2121
dependencies {

testutils/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ android {
66
testNamespace 'com.mparticle.legacyTest'
77
compileSdk 33
88
compileOptions {
9-
sourceCompatibility = JavaVersion.VERSION_17 // Set to your desired Java version
10-
targetCompatibility = JavaVersion.VERSION_17 // Set to your desired Java version
9+
sourceCompatibility = JavaVersion.toVersion(JAVA_VERSION)
10+
targetCompatibility = JavaVersion.toVersion(JAVA_VERSION)
1111
}
1212

1313
kotlinOptions {
14-
jvmTarget = "17" // Should match the Java version above
14+
jvmTarget = JAVA_VERSION
1515
}
1616
defaultConfig {
1717
//This is set to 21 to avoid slow multidex.

tooling/android-plugin/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apply plugin: 'groovy'
22
apply plugin: 'kotlin'
33

4-
sourceCompatibility = JavaVersion.VERSION_17
5-
targetCompatibility = JavaVersion.VERSION_17
4+
sourceCompatibility = JavaVersion.toVersion(JAVA_VERSION)
5+
targetCompatibility = JavaVersion.toVersion(JAVA_VERSION)
66

77

88
ext {

tooling/common/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ dependencies {
1616
}
1717

1818
java {
19-
sourceCompatibility = JavaVersion.VERSION_17
20-
targetCompatibility = JavaVersion.VERSION_17
19+
sourceCompatibility = JavaVersion.toVersion(JAVA_VERSION)
20+
targetCompatibility = JavaVersion.toVersion(JAVA_VERSION)
2121
}
2222

2323
kotlin {
24-
jvmToolchain(17)
24+
jvmToolchain(Integer.parseInt(JAVA_VERSION))
2525
}

0 commit comments

Comments
 (0)