From 4cd4160cf86ec12c9571a61647844403b5d1f0cc Mon Sep 17 00:00:00 2001 From: Ranie Jade Ramiso Date: Fri, 16 Apr 2021 11:48:26 +1000 Subject: [PATCH] Publish kotlinMultiplatform artifact for dsl and runtime modules --- spek-dsl/build.gradle.kts | 13 ++++++++++++- spek-runtime/build.gradle.kts | 13 ++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/spek-dsl/build.gradle.kts b/spek-dsl/build.gradle.kts index 6692d9f89..fa9870b3d 100644 --- a/spek-dsl/build.gradle.kts +++ b/spek-dsl/build.gradle.kts @@ -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") } @@ -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") + } + } + } } diff --git a/spek-runtime/build.gradle.kts b/spek-runtime/build.gradle.kts index cfb56ed3d..f3082e2c1 100644 --- a/spek-runtime/build.gradle.kts +++ b/spek-runtime/build.gradle.kts @@ -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") } @@ -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") + } + } + } }