Skip to content

Commit

Permalink
Update Kotlin Gradle Plugin config
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Jan 10, 2025
1 parent 79b0bc9 commit 1ba60a9
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion

plugins {
`kotlin-dsl`
Expand Down Expand Up @@ -28,17 +29,14 @@ kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
compilerOptions {
apiVersion = KotlinVersion.KOTLIN_1_4
jvmTarget = JvmTarget.JVM_1_8
freeCompilerArgs = listOf("-opt-in=kotlin.io.path.ExperimentalPathApi")
}
}

tasks {
withType<KotlinCompile> {
kotlinOptions {
apiVersion = "1.4"
jvmTarget = "1.8"
freeCompilerArgs = listOf("-opt-in=kotlin.io.path.ExperimentalPathApi")
}
}

register("format") {
group = "formatting"
description = "Formats source code according to project style."
Expand Down

0 comments on commit 1ba60a9

Please sign in to comment.