File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -251,18 +251,7 @@ allprojects {
251
251
252
252
configure<PublishingExtension > {
253
253
publications {
254
- register(" mavenJava" , MavenPublication ::class ) {
255
- from(components[" java" ])
256
-
257
- versionMapping {
258
- usage(" java-api" ) {
259
- fromResolutionOf(" runtimeClasspath" )
260
- }
261
- usage(" java-runtime" ) {
262
- fromResolutionResult()
263
- }
264
- }
265
-
254
+ withType(MavenPublication ::class ) {
266
255
pom {
267
256
name = property(" POM_NAME" ) as String
268
257
description = property(" POM_DESCRIPTION" ) as String
@@ -288,6 +277,18 @@ allprojects {
288
277
}
289
278
}
290
279
}
280
+ register(" mavenJava" , MavenPublication ::class ) {
281
+ from(components[" java" ])
282
+
283
+ versionMapping {
284
+ usage(" java-api" ) {
285
+ fromResolutionOf(" runtimeClasspath" )
286
+ }
287
+ usage(" java-runtime" ) {
288
+ fromResolutionResult()
289
+ }
290
+ }
291
+ }
291
292
}
292
293
repositories {
293
294
maven {
You can’t perform that action at this time.
0 commit comments