Skip to content

Commit c2bb09c

Browse files
committed
Rename the artifactId for the KXIO module to the intended core-io..
1 parent 802cbba commit c2bb09c

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

core/kxio/build.gradle.kts

+18
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import net.devrieze.gradle.ext.applyDefaultXmlUtilHierarchyTemplate
2323
import net.devrieze.gradle.ext.doPublish
2424
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
2525
import org.jetbrains.kotlin.gradle.dsl.HasConfigurableKotlinCompilerOptions
26+
import kotlin.text.replace
2627

2728
plugins {
2829
alias(libs.plugins.dokka)
@@ -34,6 +35,15 @@ plugins {
3435
idea
3536
}
3637

38+
base {
39+
archivesName = "core-io"
40+
}
41+
42+
config {
43+
dokkaModuleName = "core-io"
44+
}
45+
46+
3747
val autoModuleName = "net.devrieze.xmlutil.core.kxio"
3848

3949
kotlin {
@@ -80,3 +90,11 @@ kotlin {
8090
addNativeTargets()
8191

8292
doPublish("core-io")
93+
94+
publishing {
95+
publications.withType<MavenPublication> {
96+
if ("coreKXIO" in artifactId) {
97+
artifactId = artifactId.replace("coreKXIO", "core-io")
98+
}
99+
}
100+
}

project-plugins/src/main/kotlin/net/devrieze/gradle/ext/publishing.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,14 @@ fun Project.doPublish(
9191

9292

9393
pom {
94-
name.set(pubName)
94+
name = pubName
9595
description.set(pubDescription)
96-
url.set("https://github.com/pdvrieze/xmlutil")
96+
url = "https://github.com/pdvrieze/xmlutil"
9797

9898
licenses {
9999
license {
100-
name.set("Apache-2.0")
101-
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
100+
name = "Apache-2.0"
101+
url = "https://www.apache.org/licenses/LICENSE-2.0.txt"
102102
}
103103
}
104104
developers {

0 commit comments

Comments
 (0)