File tree Expand file tree Collapse file tree 1 file changed +6
-19
lines changed
Expand file tree Collapse file tree 1 file changed +6
-19
lines changed Original file line number Diff line number Diff line change 1- import java.util.*
2-
31plugins {
42 id(" java-library" )
53 id(" com.github.johnrengelman.shadow" )
@@ -269,24 +267,13 @@ allprojects {
269267
270268allprojects {
271269 plugins.withId(" maven-publish" ) {
272-
273- afterEvaluate {
274- publishing {
275- publications {
276- create<MavenPublication >(" sonatype" ) {
277- from(components[" java" ]);
278- }
279- }
280- }
281-
282- signing {
283- val signingKey = " ${project.findProperty(" signingKey" )} "
284- val signingPassword = " ${project.findProperty(" signingPassword" )} "
285- useInMemoryPgpKeys(signingKey, signingPassword)
286- sign(publishing.publications[" sonatype" ])
287- }
270+ plugins.apply (" signing" )
271+ signing {
272+ val signingKey = " ${project.findProperty(" signingKey" )} "
273+ val signingPassword = " ${project.findProperty(" signingPassword" )} "
274+ useInMemoryPgpKeys(signingKey, signingPassword)
275+ sign(publishing.publications[" sonatype" ])
288276 }
289-
290277 }
291278}
292279
You can’t perform that action at this time.
0 commit comments