From e1091b1afb901ac1f5b5be6c3475bc3b06bbdbea Mon Sep 17 00:00:00 2001 From: nathan Date: Sat, 18 Aug 2018 15:17:19 +0200 Subject: [PATCH] Added release URL output to console --- build.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build.gradle b/build.gradle index 58e8f15..80def92 100644 --- a/build.gradle +++ b/build.gradle @@ -542,6 +542,16 @@ signing { sign publishing.publications.SystemTray } +// 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.name + 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 {