Skip to content

Commit 9751faf

Browse files
authored
Merge pull request #161 from Kotlin/bobova/migrateCommits
Bobova/migrate commits
2 parents c581d95 + 7b0e8f4 commit 9751faf

File tree

5 files changed

+28
-10
lines changed

5 files changed

+28
-10
lines changed

buildSrc/build.gradle.kts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,3 @@ plugins {
88
repositories {
99
mavenCentral()
1010
}
11-
12-
kotlinDslPluginOptions {
13-
experimentalWarning.set(false)
14-
}

examples/kotlin-kts/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ dependencies {
2525
implementation(project(":kotlinx-benchmark-runtime"))
2626
}
2727

28+
tasks.withType<JavaCompile> {
29+
sourceCompatibility = "1.8"
30+
targetCompatibility = "1.8"
31+
}
32+
33+
2834
tasks.withType<KotlinCompile> {
2935
kotlinOptions {
3036
jvmTarget = "1.8"

examples/kotlin-multiplatform/build.gradle

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ kotlin {
1717
jvm {
1818
compilations.create('benchmark') { associateWith(compilations.main) }
1919
}
20-
js('jsIr', IR) { nodejs() }
21-
js('jsIrBuiltIn', IR) { nodejs() }
20+
js(IR) {
21+
nodejs()
22+
compilations.create("defaultExecutor") { associateWith(compilations.main) }
23+
compilations.create("builtInExecutor") { associateWith(compilations.main) }
24+
}
2225
wasm('wasmJs') { d8() }
2326
if (HostManager.host == KonanTarget.MACOS_X64.INSTANCE) macosX64('native')
2427
if (HostManager.host == KonanTarget.MACOS_ARM64.INSTANCE) macosArm64('native')
@@ -43,8 +46,8 @@ kotlin {
4346
wasmJsMain {}
4447

4548
jsMain {
46-
jsIrMain.dependsOn(it)
47-
jsIrBuiltInMain.dependsOn(it)
49+
jsDefaultExecutor.dependsOn(it)
50+
jsBuiltInExecutor.dependsOn(it)
4851
}
4952

5053
nativeMain {
@@ -113,8 +116,8 @@ benchmark {
113116
register("jvmBenchmark") {
114117
jmhVersion = "1.21"
115118
}
116-
register("jsIr")
117-
register("jsIrBuiltIn") {
119+
register("jsDefaultExecutor")
120+
register("jsBuiltInExecutor") {
118121
jsBenchmarksExecutor = JsBenchmarksExecutor.BuiltIn
119122
}
120123
register("wasmJs")

examples/kotlin/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ sourceSets.all {
2121
java.srcDirs = ["$it.name/src"]
2222
resources.srcDirs = ["$it.name/resources"]
2323
}
24+
compileJava {
25+
sourceCompatibility = "1.8"
26+
targetCompatibility = "1.8"
27+
}
2428

2529
compileKotlin {
2630
kotlinOptions.jvmTarget = "1.8"

runtime/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile
2+
13
plugins {
24
id 'org.jetbrains.kotlin.multiplatform'
35
}
@@ -101,3 +103,10 @@ if (project.findProperty("publication_repository") == "space") {
101103
}
102104
}
103105
}
106+
107+
// Workaround for TeamCity build failure:
108+
// Task 'compileTestKotlinLinuxX64' uses this output of task 'signLinuxX64Publication' without declaring an explicit or implicit dependency.
109+
// TODO: Find out and fix the issue
110+
tasks.withType(KotlinNativeCompile).matching { it.name.toLowerCase().contains("test") }.configureEach {
111+
it.dependsOn(tasks.withType(Sign))
112+
}

0 commit comments

Comments
 (0)