From 4c4e1536b25423893981123b46c46c7460e1c2b2 Mon Sep 17 00:00:00 2001 From: nathan Date: Sun, 5 Aug 2018 17:16:13 +0200 Subject: [PATCH] Added output to console of release URL when done releasing --- build.gradle | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build.gradle b/build.gradle index 3abf534..0db5870 100644 --- a/build.gradle +++ b/build.gradle @@ -206,6 +206,17 @@ nexusStaging { 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) tasks.withType(PublishToMavenRepository) { onlyIf {