Skip to content

Commit

Permalink
Adjust publishing to Maven Central some more
Browse files Browse the repository at this point in the history
  • Loading branch information
centic9 committed Jan 15, 2023
1 parent 42ae903 commit e0509db
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,6 @@ java {
withSourcesJar()
}

signing {
setRequired {
// signing is only required if this is a release version
// and the artifacts are to be published
gradle.taskGraph.allTasks.any { it instanceof PublishToMavenRepository }
}
sign configurations.archives
}

release {
git {
requireBranch.set('master')
Expand All @@ -115,7 +106,7 @@ release {

publishing {
publications {
maven(MavenPublication) {
mavenJava(MavenPublication) {
from components.java

pom {
Expand Down Expand Up @@ -153,6 +144,10 @@ publishing {
}
}

signing {
sign publishing.publications.mavenJava
}

afterReleaseBuild.dependsOn publish

task lookupURLs(type:JavaExec,dependsOn: compileJava) {
Expand Down

0 comments on commit e0509db

Please sign in to comment.