Skip to content

Commit 3587372

Browse files
Abduqodiri Qurbonzodaqurbonzoda
authored andcommitted
Move kotlinx-benchmark-runtime dependency declaration to ProjectBuilder
1 parent 90987c1 commit 3587372

File tree

10 files changed

+8
-104
lines changed

10 files changed

+8
-104
lines changed

integration/src/main/kotlin/kotlinx/benchmark/integration/ProjectBuilder.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,13 @@ private fun generateBuildScript(kotlinVersion: String, jvmToolchain: Int) =
6161
6262
kotlin {
6363
jvmToolchain($jvmToolchain)
64+
65+
sourceSets {
66+
commonMain {
67+
dependencies {
68+
implementation("org.jetbrains.kotlinx:kotlinx-benchmark-runtime:0.5.0-SNAPSHOT")
69+
}
70+
}
71+
}
6472
}
6573
""".trimIndent()

integration/src/test/resources/templates/annotations-validation/build.gradle

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,6 @@ kotlin {
1010
if (HostManager.hostIsMingw) mingwX64('native')
1111
if (HostManager.host == KonanTarget.MACOS_X64.INSTANCE) macosX64('native')
1212
if (HostManager.host == KonanTarget.MACOS_ARM64.INSTANCE) macosArm64('native')
13-
14-
sourceSets {
15-
commonMain {
16-
dependencies {
17-
implementation("org.jetbrains.kotlinx:kotlinx-benchmark-runtime:0.5.0-SNAPSHOT")
18-
}
19-
}
20-
jvmMain {
21-
}
22-
jsMain {
23-
}
24-
wasmJsMain {
25-
}
26-
nativeMain {
27-
}
28-
}
2913
}
3014

3115
benchmark {

integration/src/test/resources/templates/config-options/build.gradle

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,6 @@ kotlin {
1010
if (HostManager.hostIsMingw) mingwX64('native')
1111
if (HostManager.host == KonanTarget.MACOS_X64.INSTANCE) macosX64('native')
1212
if (HostManager.host == KonanTarget.MACOS_ARM64.INSTANCE) macosArm64('native')
13-
14-
sourceSets {
15-
commonMain {
16-
dependencies {
17-
implementation("org.jetbrains.kotlinx:kotlinx-benchmark-runtime:0.5.0-SNAPSHOT")
18-
}
19-
}
20-
jvmMain {
21-
}
22-
jsMain {
23-
}
24-
wasmJsMain {
25-
}
26-
nativeMain {
27-
}
28-
}
2913
}
3014

3115
benchmark {

integration/src/test/resources/templates/invalid-target/wasm-nodejs/build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@ kotlin {
22
wasmJs {
33
nodejs()
44
}
5-
6-
sourceSets {
7-
commonMain {
8-
dependencies {
9-
implementation("org.jetbrains.kotlinx:kotlinx-benchmark-runtime:0.5.0-SNAPSHOT")
10-
}
11-
}
12-
}
135
}
146

157
benchmark {

integration/src/test/resources/templates/kmp-with-toolchain/higher-version-than-in-gradle/build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
kotlin {
22
jvm {}
3-
4-
sourceSets {
5-
commonMain {
6-
dependencies {
7-
implementation("org.jetbrains.kotlinx:kotlinx-benchmark-runtime:0.5.0-SNAPSHOT")
8-
}
9-
}
10-
}
113
}
124

135
benchmark {

integration/src/test/resources/templates/kmp-with-toolchain/min-supported-version/build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
kotlin {
22
jvm {}
3-
4-
sourceSets {
5-
commonMain {
6-
dependencies {
7-
implementation("org.jetbrains.kotlinx:kotlinx-benchmark-runtime:0.5.0-SNAPSHOT")
8-
}
9-
}
10-
}
113
}
124

135
benchmark {

integration/src/test/resources/templates/kotlin-multiplatform/build.gradle

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,9 @@ kotlin {
1414
if (HostManager.host == KonanTarget.MACOS_ARM64.INSTANCE) macosArm64('native')
1515

1616
sourceSets {
17-
commonMain {
18-
dependencies {
19-
implementation("org.jetbrains.kotlinx:kotlinx-benchmark-runtime:0.5.0-SNAPSHOT")
20-
}
21-
}
22-
jvmMain {
23-
}
2417
jvmBenchmark {
2518
dependsOn(jvmMain)
2619
}
27-
jsMain {
28-
}
29-
wasmJsMain {
30-
}
31-
nativeMain {
32-
}
3320
}
3421
}
3522

integration/src/test/resources/templates/kotlin-native/build.gradle

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@ kotlin {
77
if (HostManager.hostIsMingw) mingwX64('native')
88
if (HostManager.host == KonanTarget.MACOS_ARM64.INSTANCE) macosArm64('native')
99
if (HostManager.host == KonanTarget.MACOS_X64.INSTANCE) macosX64('native')
10-
11-
sourceSets {
12-
commonMain {
13-
dependencies {
14-
implementation("org.jetbrains.kotlinx:kotlinx-benchmark-runtime:0.5.0-SNAPSHOT")
15-
}
16-
}
17-
nativeMain { }
18-
}
1910
}
2011

2112
benchmark {

integration/src/test/resources/templates/source-generation/build.gradle

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,6 @@ kotlin {
1010
if (HostManager.hostIsMingw) mingwX64('native')
1111
if (HostManager.host == KonanTarget.MACOS_X64.INSTANCE) macosX64('native')
1212
if (HostManager.host == KonanTarget.MACOS_ARM64.INSTANCE) macosArm64('native')
13-
14-
sourceSets {
15-
commonMain {
16-
dependencies {
17-
implementation("org.jetbrains.kotlinx:kotlinx-benchmark-runtime:0.5.0-SNAPSHOT")
18-
}
19-
}
20-
jvmMain {
21-
}
22-
jsMain {
23-
}
24-
wasmJsMain {
25-
}
26-
nativeMain {
27-
}
28-
}
2913
}
3014

3115
benchmark {

integration/src/test/resources/templates/wasm-gc-non-experimental/wasm-d8/build.gradle

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@ kotlin {
44
wasmJs {
55
d8()
66
}
7-
8-
sourceSets {
9-
commonMain {
10-
dependencies {
11-
implementation("org.jetbrains.kotlinx:kotlinx-benchmark-runtime:0.5.0-SNAPSHOT")
12-
}
13-
}
14-
wasmJsMain {
15-
}
16-
}
177
}
188

199
benchmark {

0 commit comments

Comments
 (0)