We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 454c440 commit cbfab24Copy full SHA for cbfab24
build.gradle.kts
@@ -98,6 +98,7 @@ val dokkaJar by tasks.creating(Jar::class) {
98
val sourceJar by tasks.creating(Jar::class) {
99
archiveClassifier.set("sources")
100
}
101
+val emptyJar by tasks.creating(Jar::class)
102
103
tasks.create("publishAppleToMavenLocal") {
104
group = "publishing"
@@ -158,7 +159,10 @@ publishing {
158
159
artifact(dokkaJar)
160
pom.initPom()
161
- publications.withType<MavenPublication>().find { it.name == "kotlinMultiplatform" }?.artifact(sourceJar)
162
+ publications.withType<MavenPublication>().find { it.name == "kotlinMultiplatform" }?.apply {
163
+ artifact(sourceJar)
164
+ artifact(emptyJar)
165
+ }
166
167
repositories {
168
maven {
0 commit comments