Commit 6192c00 1 parent 615b6fa commit 6192c00 Copy full SHA for 6192c00
File tree 3 files changed +13
-18
lines changed
buildSrc/src/main/kotlin/com/badoo/marathon/conventions
3 files changed +13
-18
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ class MarathonConventionsPlugin : Plugin<Project> {
64
64
private fun Project.configureJava (versionCatalog : VersionCatalog ) {
65
65
extensions.configure<JavaPluginExtension > {
66
66
toolchain {
67
- languageVersion.set(JVM_TARGET )
67
+ languageVersion.set(JavaLanguageVersion .of( 17 ) )
68
68
}
69
69
withJavadocJar()
70
70
withSourcesJar()
@@ -79,9 +79,6 @@ class MarathonConventionsPlugin : Plugin<Project> {
79
79
80
80
private fun Project.configureKotlin () {
81
81
extensions.configure<KotlinJvmProjectExtension > {
82
- jvmToolchain {
83
- languageVersion.set(JVM_TARGET )
84
- }
85
82
compilerOptions {
86
83
freeCompilerArgs.addAll(
87
84
" -Xjvm-default=all" ,
@@ -208,8 +205,4 @@ class MarathonConventionsPlugin : Plugin<Project> {
208
205
val versionSuffix = if (releaseMode.orNull == " RELEASE" ) " " else " -SNAPSHOT"
209
206
return version.get() + versionSuffix
210
207
}
211
-
212
- companion object {
213
- private val JVM_TARGET = JavaLanguageVersion .of(17 )
214
- }
215
208
}
Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ plugins {
4
4
alias(libs.plugins.marathon)
5
5
}
6
6
7
+ java {
8
+ toolchain {
9
+ languageVersion.set(JavaLanguageVersion .of(17 ))
10
+ }
11
+ }
12
+
7
13
android {
8
14
compileSdk = 34
9
15
namespace = " com.example"
@@ -19,11 +25,6 @@ android {
19
25
testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
20
26
}
21
27
22
- compileOptions {
23
- sourceCompatibility = JavaVersion .VERSION_17
24
- targetCompatibility = JavaVersion .VERSION_17
25
- }
26
-
27
28
buildTypes {
28
29
getByName(" release" ) {
29
30
isMinifyEnabled = false
Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ plugins {
4
4
alias(libs.plugins.marathon)
5
5
}
6
6
7
+ java {
8
+ toolchain {
9
+ languageVersion.set(JavaLanguageVersion .of(17 ))
10
+ }
11
+ }
12
+
7
13
android {
8
14
compileSdk = 34
9
15
namespace = " com.example.library"
@@ -14,11 +20,6 @@ android {
14
20
testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
15
21
}
16
22
17
- compileOptions {
18
- sourceCompatibility = JavaVersion .VERSION_17
19
- targetCompatibility = JavaVersion .VERSION_17
20
- }
21
-
22
23
lint {
23
24
targetSdk = 34
24
25
}
You can’t perform that action at this time.
0 commit comments