@@ -37,58 +37,40 @@ bomService.coordinates
3737 },
3838 )
3939
40- afterEvaluate {
41- publishing {
40+ publishing {
4241
43- publications.withType<MavenPublication > {
44- // Stub javadoc.jar artifact
45- artifact(javadocJar)
42+ publications.withType<MavenPublication > {
43+ // Stub javadoc.jar artifact
44+ artifact(javadocJar)
4645
47- pom {
48- name.set(" JSON schema validator" )
49- description.set(" Multiplatform Kotlin implementation of JSON schema validator" )
50- url.set(" https://github.com/OptimumCode/json-schema-validator" )
46+ pom {
47+ name.set(" JSON schema validator" )
48+ description.set(" Multiplatform Kotlin implementation of JSON schema validator" )
49+ url.set(" https://github.com/OptimumCode/json-schema-validator" )
5150
52- licenses {
53- license {
54- name.set(" MIT" )
55- url.set(" https://opensource.org/licenses/MIT" )
56- }
57- }
58- developers {
59- developer {
60- id.set(" OptimumCode" )
61- name.set(" Oleg Smirnov" )
62- 63- }
51+ licenses {
52+ license {
53+ name.set(" MIT" )
54+ url.set(" https://opensource.org/licenses/MIT" )
6455 }
65- scm {
66- url.set(" https://github.com/OptimumCode/json-schema-validator" )
56+ }
57+ developers {
58+ developer {
59+ id.set(" OptimumCode" )
60+ name.set(" Oleg Smirnov" )
61+ 6762 }
6863 }
64+ scm {
65+ url.set(" https://github.com/OptimumCode/json-schema-validator" )
66+ }
6967 }
7068 }
69+ }
7170
72- val signTasks = tasks.withType<Sign >()
73- // otherwise, the publication fails because some task uses sign output but do not declare that
74- tasks.withType<AbstractPublishToMaven > {
75- mustRunAfter(signTasks)
76- }
77-
78- // Call toList to prevent concurrent modification exception
79- signTasks.toList().forEach {
80- val platform =
81- it.name.substring(
82- " sign" .length,
83- it.name.length - " Publication" .length,
84- )
85- tasks
86- .findByName(" linkDebugTest$platform " )
87- ?.mustRunAfter(it)
88- tasks
89- .findByName(" compileTestKotlin$platform " )
90- ?.mustRunAfter(it)
91- }
71+ // otherwise, the publication fails because some task uses sign output but do not declare that
72+ tasks.withType<AbstractPublishToMaven > {
73+ mustRunAfter(tasks.withType<Sign >())
9274}
9375
9476signing {
0 commit comments