Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish kotlinMultiplatform artifact for dsl and runtime modules #965

Merged
merged 1 commit into from
May 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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")
}
}
}
}