Skip to content

Commit f2b80b0

Browse files
author
ahmetduruer
committed
fix
1 parent 66c9aec commit f2b80b0

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

build.gradle.kts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,19 @@ tasks.withType<JavaCompile> {
177177
targetCompatibility = "1.8"
178178
}
179179

180+
// Configure Kotlin sources jar
181+
tasks.register<Jar>("kotlinSourcesJar") {
182+
archiveClassifier.set("sources")
183+
from(sourceSets["main"].allSource)
184+
}
185+
186+
// Configure Javadoc jar
187+
tasks.register<Jar>("javadocJar") {
188+
archiveClassifier.set("javadoc")
189+
// For Kotlin projects, we can use an empty javadoc jar or generate KDoc
190+
// Empty javadoc is acceptable for Maven Central
191+
}
192+
180193
// Publishing configuration
181194
publishing {
182195
publications {
@@ -228,19 +241,6 @@ publishing {
228241
}
229242
}
230243

231-
// Configure Kotlin sources jar
232-
tasks.register<Jar>("kotlinSourcesJar") {
233-
archiveClassifier.set("sources")
234-
from(sourceSets["main"].allSource)
235-
}
236-
237-
// Configure Javadoc jar
238-
tasks.register<Jar>("javadocJar") {
239-
archiveClassifier.set("javadoc")
240-
// For Kotlin projects, we can use an empty javadoc jar or generate KDoc
241-
// Empty javadoc is acceptable for Maven Central
242-
}
243-
244244
// Signing configuration
245245
signing {
246246
val signingKey = System.getenv("GPG_PRIVATE_KEY")

0 commit comments

Comments
 (0)