File tree Expand file tree Collapse file tree 2 files changed +17
-17
lines changed
Expand file tree Collapse file tree 2 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 1- @file:OptIn(ExperimentalKotlinGradlePluginApi ::class )
2-
31import io.github.petertrr.configurePublishing
42import io.github.petertrr.ext.booleanProperty
5- import io.gitlab.arturbosch.detekt.Detekt
6- import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
73import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
84import org.jetbrains.kotlin.gradle.dsl.JvmTarget
95import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
@@ -26,16 +22,16 @@ kotlin {
2622 explicitApi()
2723
2824 compilerOptions {
29- apiVersion = KotlinVersion .KOTLIN_1_9
30- languageVersion = KotlinVersion .KOTLIN_1_9
25+ apiVersion = KotlinVersion .KOTLIN_2_1
26+ languageVersion = KotlinVersion .KOTLIN_2_1
3127 }
3228
3329 jvm {
3430 compilations.configureEach {
3531 compileTaskProvider.configure {
3632 compilerOptions {
3733 // Minimum bytecode level is 52
38- jvmTarget = JvmTarget .JVM_11
34+ jvmTarget = JvmTarget .JVM_1_8
3935
4036 // Output interfaces with default methods
4137 freeCompilerArgs.addAll(
@@ -105,9 +101,7 @@ detekt {
105101}
106102
107103tasks {
108- withType<Detekt > {
109- named(" check" ) {
110- dependsOn(this @withType)
111- }
104+ check {
105+ dependsOn(detekt)
112106 }
113107}
Original file line number Diff line number Diff line change 1- kotlin.code.style =official
2- org.gradle.jvmargs =-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
3- org.gradle.caching =true
4- # https://kotlinlang.org/docs/whatsnew19.html#preview-of-gradle-configuration-cache
5- org.gradle.configuration-cache =false
6- org.gradle.parallel =true
1+ # ########################
2+ # Gradle settings
3+ # ########################
4+ org.gradle.jvmargs = -Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
5+ org.gradle.parallel = true
6+ org.gradle.caching = true
7+ org.gradle.configuration-cache = true
8+
9+ # ########################
10+ # Kotlin settings
11+ # ########################
12+ kotlin.code.style = official
You can’t perform that action at this time.
0 commit comments