File tree 2 files changed +22
-4
lines changed
project-plugins/src/main/kotlin/net/devrieze/gradle/ext
2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import net.devrieze.gradle.ext.applyDefaultXmlUtilHierarchyTemplate
23
23
import net.devrieze.gradle.ext.doPublish
24
24
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
25
25
import org.jetbrains.kotlin.gradle.dsl.HasConfigurableKotlinCompilerOptions
26
+ import kotlin.text.replace
26
27
27
28
plugins {
28
29
alias(libs.plugins.dokka)
@@ -34,6 +35,15 @@ plugins {
34
35
idea
35
36
}
36
37
38
+ base {
39
+ archivesName = " core-io"
40
+ }
41
+
42
+ config {
43
+ dokkaModuleName = " core-io"
44
+ }
45
+
46
+
37
47
val autoModuleName = " net.devrieze.xmlutil.core.kxio"
38
48
39
49
kotlin {
@@ -80,3 +90,11 @@ kotlin {
80
90
addNativeTargets()
81
91
82
92
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
+ }
Original file line number Diff line number Diff line change @@ -91,14 +91,14 @@ fun Project.doPublish(
91
91
92
92
93
93
pom {
94
- name.set( pubName)
94
+ name = pubName
95
95
description.set(pubDescription)
96
- url.set( " https://github.com/pdvrieze/xmlutil" )
96
+ url = " https://github.com/pdvrieze/xmlutil"
97
97
98
98
licenses {
99
99
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"
102
102
}
103
103
}
104
104
developers {
You can’t perform that action at this time.
0 commit comments