Skip to content

Commit 7636fdd

Browse files
authored
Publish kotlinMultiplatform publication (#904)
1 parent 1e464f9 commit 7636fdd

File tree

4 files changed

+20
-10
lines changed

4 files changed

+20
-10
lines changed

integration-test/build.gradle.kts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ kotlin {
2525

2626
val commonTest by getting {
2727
dependencies {
28-
implementation("org.spekframework.spek2:spek-dsl-metadata")
29-
implementation("org.spekframework.spek2:spek-runtime-metadata")
28+
implementation("org.spekframework.spek2:spek-dsl")
29+
implementation("org.spekframework.spek2:spek-runtime")
3030
implementation(kotlin("test"))
3131
}
3232
}
@@ -67,8 +67,6 @@ kotlin {
6767
compilations["test"].defaultSourceSet {
6868
dependencies {
6969
dependsOn(nativeTest)
70-
implementation("org.spekframework.spek2:spek-dsl-linux")
71-
implementation("org.spekframework.spek2:spek-runtime-linux")
7270
}
7371
}
7472
}
@@ -83,8 +81,6 @@ kotlin {
8381
compilations["test"].defaultSourceSet {
8482
dependencies {
8583
dependsOn(nativeTest)
86-
implementation("org.spekframework.spek2:spek-dsl-macos")
87-
implementation("org.spekframework.spek2:spek-runtime-macos")
8884
}
8985
}
9086
}
@@ -99,8 +95,6 @@ kotlin {
9995
compilations["test"].defaultSourceSet {
10096
dependencies {
10197
dependsOn(nativeTest)
102-
implementation("org.spekframework.spek2:spek-dsl-windows")
103-
implementation("org.spekframework.spek2:spek-runtime-windows")
10498
}
10599
}
106100
}

integration-test/settings.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
includeBuild("../") {
22
dependencySubstitution {
33
substitute(module("org.spekframework.spek2:spek-gradle-plugin:0.1.0")).with(project(":spek-gradle-plugin"))
4+
substitute(module("org.spekframework.spek2:spek-dsl")).with(project(":spek-dsl"))
45
substitute(module("org.spekframework.spek2:spek-dsl-metadata")).with(project(":spek-dsl"))
56
substitute(module("org.spekframework.spek2:spek-dsl-jvm")).with(project(":spek-dsl"))
67
substitute(module("org.spekframework.spek2:spek-dsl-linux")).with(project(":spek-dsl"))
78
substitute(module("org.spekframework.spek2:spek-dsl-windows")).with(project(":spek-dsl"))
89
substitute(module("org.spekframework.spek2:spek-dsl-macos")).with(project(":spek-dsl"))
10+
substitute(module("org.spekframework.spek2:spek-runtime")).with(project(":spek-runtime"))
911
substitute(module("org.spekframework.spek2:spek-runtime-metadata")).with(project(":spek-runtime"))
1012
substitute(module("org.spekframework.spek2:spek-runtime-jvm")).with(project(":spek-runtime"))
1113
substitute(module("org.spekframework.spek2:spek-runtime-linux")).with(project(":spek-runtime"))

spek-dsl/build.gradle.kts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ val stubJavaDocJar by tasks.registering(Jar::class) {
9797
}
9898

9999
project.extra["artifacts"] = when (currentOS) {
100-
OS.LINUX -> arrayOf("metadata", "jvm", "js", "linux")
100+
OS.LINUX -> arrayOf("kotlinMultiplatform", "metadata", "jvm", "js", "linux")
101101
OS.WINDOWS -> arrayOf("windows")
102102
OS.MACOS -> arrayOf("macos")
103103
}
@@ -113,4 +113,11 @@ publishing {
113113
targetPublication.artifact(stubJavaDocJar.get())
114114
}
115115
}
116+
117+
publications {
118+
getByName("kotlinMultiplatform", MavenPublication::class) {
119+
groupId = "org.spekframework.spek2"
120+
artifactId = "spek-dsl"
121+
}
122+
}
116123
}

spek-runtime/build.gradle.kts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ val stubJavaDocJar by tasks.registering(Jar::class) {
102102
}
103103

104104
project.extra["artifacts"] = when (currentOS) {
105-
OS.LINUX -> arrayOf("metadata", "jvm", "js", "linux")
105+
OS.LINUX -> arrayOf("kotlinMultiplatform", "metadata", "jvm", "js", "linux")
106106
OS.WINDOWS -> arrayOf("windows")
107107
OS.MACOS -> arrayOf("macos")
108108
}
@@ -118,4 +118,11 @@ publishing {
118118
targetPublication.artifact(stubJavaDocJar.get())
119119
}
120120
}
121+
122+
publications {
123+
getByName("kotlinMultiplatform", MavenPublication::class) {
124+
groupId = "org.spekframework.spek2"
125+
artifactId = "spek-runtime"
126+
}
127+
}
121128
}

0 commit comments

Comments
 (0)