File tree 2 files changed +17
-17
lines changed
2 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 1
- @file:OptIn(ExperimentalKotlinGradlePluginApi ::class )
2
-
3
1
import io.github.petertrr.configurePublishing
4
2
import io.github.petertrr.ext.booleanProperty
5
- import io.gitlab.arturbosch.detekt.Detekt
6
- import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
7
3
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
8
4
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
9
5
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
@@ -26,16 +22,16 @@ kotlin {
26
22
explicitApi()
27
23
28
24
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
31
27
}
32
28
33
29
jvm {
34
30
compilations.configureEach {
35
31
compileTaskProvider.configure {
36
32
compilerOptions {
37
33
// Minimum bytecode level is 52
38
- jvmTarget = JvmTarget .JVM_11
34
+ jvmTarget = JvmTarget .JVM_1_8
39
35
40
36
// Output interfaces with default methods
41
37
freeCompilerArgs.addAll(
@@ -105,9 +101,7 @@ detekt {
105
101
}
106
102
107
103
tasks {
108
- withType<Detekt > {
109
- named(" check" ) {
110
- dependsOn(this @withType)
111
- }
104
+ check {
105
+ dependsOn(detekt)
112
106
}
113
107
}
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