File tree Expand file tree Collapse file tree 5 files changed +28
-10
lines changed Expand file tree Collapse file tree 5 files changed +28
-10
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,3 @@ plugins {
88repositories {
99 mavenCentral()
1010}
11-
12- kotlinDslPluginOptions {
13- experimentalWarning.set(false )
14- }
Original file line number Diff line number Diff 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+
2834tasks.withType<KotlinCompile > {
2935 kotlinOptions {
3036 jvmTarget = " 1.8"
Original file line number Diff line number Diff 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" )
Original file line number Diff line number Diff 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
2529compileKotlin {
2630 kotlinOptions. jvmTarget = " 1.8"
Original file line number Diff line number Diff line change 1+ import org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile
2+
13plugins {
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+ }
You can’t perform that action at this time.
0 commit comments