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 {
8
8
repositories {
9
9
mavenCentral()
10
10
}
11
-
12
- kotlinDslPluginOptions {
13
- experimentalWarning.set(false )
14
- }
Original file line number Diff line number Diff line change @@ -25,6 +25,12 @@ dependencies {
25
25
implementation(project(" :kotlinx-benchmark-runtime" ))
26
26
}
27
27
28
+ tasks.withType<JavaCompile > {
29
+ sourceCompatibility = " 1.8"
30
+ targetCompatibility = " 1.8"
31
+ }
32
+
33
+
28
34
tasks.withType<KotlinCompile > {
29
35
kotlinOptions {
30
36
jvmTarget = " 1.8"
Original file line number Diff line number Diff line change @@ -17,8 +17,11 @@ kotlin {
17
17
jvm {
18
18
compilations. create(' benchmark' ) { associateWith(compilations. main) }
19
19
}
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
+ }
22
25
wasm(' wasmJs' ) { d8() }
23
26
if (HostManager . host == KonanTarget . MACOS_X64 . INSTANCE ) macosX64(' native' )
24
27
if (HostManager . host == KonanTarget . MACOS_ARM64 . INSTANCE ) macosArm64(' native' )
@@ -43,8 +46,8 @@ kotlin {
43
46
wasmJsMain {}
44
47
45
48
jsMain {
46
- jsIrMain . dependsOn(it)
47
- jsIrBuiltInMain . dependsOn(it)
49
+ jsDefaultExecutor . dependsOn(it)
50
+ jsBuiltInExecutor . dependsOn(it)
48
51
}
49
52
50
53
nativeMain {
@@ -113,8 +116,8 @@ benchmark {
113
116
register(" jvmBenchmark" ) {
114
117
jmhVersion = " 1.21"
115
118
}
116
- register(" jsIr " )
117
- register(" jsIrBuiltIn " ) {
119
+ register(" jsDefaultExecutor " )
120
+ register(" jsBuiltInExecutor " ) {
118
121
jsBenchmarksExecutor = JsBenchmarksExecutor.BuiltIn
119
122
}
120
123
register(" wasmJs" )
Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ sourceSets.all {
21
21
java. srcDirs = [" $it . name /src" ]
22
22
resources. srcDirs = [" $it . name /resources" ]
23
23
}
24
+ compileJava {
25
+ sourceCompatibility = " 1.8"
26
+ targetCompatibility = " 1.8"
27
+ }
24
28
25
29
compileKotlin {
26
30
kotlinOptions. jvmTarget = " 1.8"
Original file line number Diff line number Diff line change
1
+ import org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile
2
+
1
3
plugins {
2
4
id ' org.jetbrains.kotlin.multiplatform'
3
5
}
@@ -101,3 +103,10 @@ if (project.findProperty("publication_repository") == "space") {
101
103
}
102
104
}
103
105
}
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