File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff 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
181194publishing {
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
245245signing {
246246 val signingKey = System .getenv(" GPG_PRIVATE_KEY" )
You can’t perform that action at this time.
0 commit comments