Added output to console of release URL when done releasing

This commit is contained in:
nathan 2018-08-05 17:16:13 +02:00
parent 1ca8218807
commit 4c4e1536b2

View File

@ -206,6 +206,17 @@ nexusStaging {
password sonatypePassword password sonatypePassword
} }
// output the release URL in the console
releaseRepository.doLast {
def URL = 'https://oss.sonatype.org/content/repositories/releases/'
def projectName = project.group.toString().replaceAll('\\.', '/')
def name = project.ext.id
def version = project.version
println("Maven URL: ${URL}${projectName}/${name}/${version}/")
}
// we don't use maven with the plugin (it's uploaded separately to gradle plugins) // we don't use maven with the plugin (it's uploaded separately to gradle plugins)
tasks.withType(PublishToMavenRepository) { tasks.withType(PublishToMavenRepository) {
onlyIf { onlyIf {