@@ -37,58 +37,40 @@ bomService.coordinates
37
37
},
38
38
)
39
39
40
- afterEvaluate {
41
- publishing {
40
+ publishing {
42
41
43
- publications.withType<MavenPublication > {
44
- // Stub javadoc.jar artifact
45
- artifact(javadocJar)
42
+ publications.withType<MavenPublication > {
43
+ // Stub javadoc.jar artifact
44
+ artifact(javadocJar)
46
45
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" )
51
50
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
- email.set(" oleg31101996@gmail.com" )
63
- }
51
+ licenses {
52
+ license {
53
+ name.set(" MIT" )
54
+ url.set(" https://opensource.org/licenses/MIT" )
64
55
}
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
+ email.set(" oleg31101996@gmail.com" )
67
62
}
68
63
}
64
+ scm {
65
+ url.set(" https://github.com/OptimumCode/json-schema-validator" )
66
+ }
69
67
}
70
68
}
69
+ }
71
70
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 >())
92
74
}
93
75
94
76
signing {
0 commit comments