File tree 1 file changed +0
-15
lines changed
1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 1
- import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2
- import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3
-
4
1
plugins {
5
2
`kotlin- dsl`
6
3
}
@@ -20,18 +17,6 @@ kotlin {
20
17
)
21
18
}
22
19
23
- // TODO: Remove setting `options.release` and `compilerOptions.jvmTarget` after upgrade to Kotlin Gradle Plugin 1.9
24
- // build-logic is an internal project and given we know how the "actual" project is built - it's fine to target current java here as well.
25
- // @see https://github.com/pinterest/ktlint/pull/2120#discussion_r1260229055 for more details
26
- val buildLogicTargetJavaVersion = JavaVersion .VERSION_17
27
- tasks.withType<JavaCompile >().configureEach {
28
- options.release = buildLogicTargetJavaVersion.majorVersion.toInt()
29
- }
30
- tasks.withType<KotlinCompile >().configureEach {
31
- // Convert Java version (e.g. "1.8" or "11") to Kotlin JvmTarget ("8" resp. "11")
32
- compilerOptions.jvmTarget = JvmTarget .fromTarget(buildLogicTargetJavaVersion.toString())
33
- }
34
-
35
20
dependencies {
36
21
val kotlinPlugin =
37
22
if (hasProperty(" kotlinDev" )) {
You can’t perform that action at this time.
0 commit comments