Skip to content

Commit 743edaa

Browse files
committed
build: prepare for Kotlin 2.0
1 parent 84029fd commit 743edaa

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ build
55
/.idea
66
*.iml
77
out
8-
.DS_Store
8+
.DS_Store
9+
.kotlin/

build.gradle.kts

+11-13
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,17 @@ kotlin {
3232

3333
jvm {
3434
compilations.configureEach {
35-
compilerOptions.configure {
36-
// Minimum bytecode level is 52
37-
jvmTarget = JvmTarget.JVM_1_8
38-
39-
// Output interfaces with default methods
40-
freeCompilerArgs.addAll(
41-
"-Xjvm-default=all", // Output interfaces with default methods
42-
"-Xno-param-assertions", // Remove Intrinsics.checkNotNullParameter
43-
)
35+
compileTaskProvider.configure {
36+
compilerOptions {
37+
// Minimum bytecode level is 52
38+
jvmTarget = JvmTarget.JVM_1_8
39+
40+
// Output interfaces with default methods
41+
freeCompilerArgs.addAll(
42+
"-Xjvm-default=all", // Output interfaces with default methods
43+
"-Xno-param-assertions", // Remove Intrinsics.checkNotNullParameter
44+
)
45+
}
4446
}
4547
}
4648

@@ -72,15 +74,11 @@ kotlin {
7274
wasmJs {
7375
browser()
7476
nodejs()
75-
applyBinaryen()
7677
}
7778

7879
@OptIn(ExperimentalWasmDsl::class)
7980
wasmWasi {
8081
nodejs()
81-
82-
// Available since 2.0
83-
// applyBinaryen()
8482
}
8583

8684
linuxX64()

0 commit comments

Comments
 (0)