Signing mit new maven-publish


(Danny Preussler) #1

Hi, I could not figure out how to sign the POM as needed to upload to sonatype
when using the new maven-publish
https://docs.gradle.org/current/userguide/publishing_maven.html#sec:modifying_the_generated_pom

as the signing plugin is mentioning the old upload task:
https://docs.gradle.org/current/userguide/signing_plugin.html

uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
}
}
}

can you point me to right direction how to hook into upload to sign the pom?
Here the build.gradle: