Skip to content

Commit

Permalink
Publish kotlinMultiplatform artifact for dsl and runtime modules (#965)
Browse files Browse the repository at this point in the history
  • Loading branch information
raniejade authored May 21, 2021
1 parent a526a6a commit 4bcfdb0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
13 changes: 12 additions & 1 deletion spek-dsl/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ val stubJavaDocJar by tasks.registering(Jar::class) {
}

project.extra["artifacts"] = when (currentOS) {
OS.LINUX -> arrayOf("metadata", "jvm", "js", "linux")
OS.LINUX -> arrayOf("kotlinMultiplatform", "jvm", "js", "linux")
OS.WINDOWS -> arrayOf("windows")
OS.MACOS -> arrayOf("macos")
}
Expand All @@ -116,4 +116,15 @@ publishing {
targetPublication.artifact(stubJavaDocJar.get())
}
}

publications.findByName("kotlinMultiplatform")?.apply {
if (this is MavenPublication) {
groupId = "org.spekframework.spek2"
artifactId = "spek-dsl"
pom {
name.set("Spek DSL")
description.set("Kotlin metadata module for spek-dsl")
}
}
}
}
13 changes: 12 additions & 1 deletion spek-runtime/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ val stubJavaDocJar by tasks.registering(Jar::class) {
}

project.extra["artifacts"] = when (currentOS) {
OS.LINUX -> arrayOf("metadata", "jvm", "js", "linux")
OS.LINUX -> arrayOf("kotlinMultiplatform", "jvm", "js", "linux")
OS.WINDOWS -> arrayOf("windows")
OS.MACOS -> arrayOf("macos")
}
Expand All @@ -128,4 +128,15 @@ publishing {
targetPublication.artifact(stubJavaDocJar.get())
}
}

publications.findByName("kotlinMultiplatform")?.apply {
if (this is MavenPublication) {
groupId = "org.spekframework.spek2"
artifactId = "spek-runtime"
pom {
name.set("Spek Runtime")
description.set("Kotlin metadata module for spek-runtime")
}
}
}
}

0 comments on commit 4bcfdb0

Please sign in to comment.