diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-06 20:05:56 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-06 20:05:56 -0500 |
commit | 2f7710bf1c34ad8b3720d976e2687fe9b2c8ad83 (patch) | |
tree | fdf127b7b6d644717cf4029525b5c6c215015329 /plugins/sonatype-release/src | |
parent | 8c2428dd1947c70f85bf8c6f8dab5765533b68cd (diff) | |
download | cbt-2f7710bf1c34ad8b3720d976e2687fe9b2c8ad83.tar.gz cbt-2f7710bf1c34ad8b3720d976e2687fe9b2c8ad83.tar.bz2 cbt-2f7710bf1c34ad8b3720d976e2687fe9b2c8ad83.zip |
return Seq[URL] from publish task and \n separate Seqs in std out
Diffstat (limited to 'plugins/sonatype-release/src')
-rw-r--r-- | plugins/sonatype-release/src/SonatypeRelease.scala | 2 | ||||
-rw-r--r-- | plugins/sonatype-release/src/sonatype/SonatypeLib.scala | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/plugins/sonatype-release/src/SonatypeRelease.scala b/plugins/sonatype-release/src/SonatypeRelease.scala index 5d908f9..57c27df 100644 --- a/plugins/sonatype-release/src/SonatypeRelease.scala +++ b/plugins/sonatype-release/src/SonatypeRelease.scala @@ -22,5 +22,5 @@ trait SonatypeRelease extends Publish{ def publishSonatype = sonatypeLib.publishSigned( publishedArtifacts, releaseFolder ) - override def publish = {super.publish; publishSonatype} + override def publish = super.publish ++ publishSonatype } diff --git a/plugins/sonatype-release/src/sonatype/SonatypeLib.scala b/plugins/sonatype-release/src/sonatype/SonatypeLib.scala index 317c60f..08f7ee1 100644 --- a/plugins/sonatype-release/src/sonatype/SonatypeLib.scala +++ b/plugins/sonatype-release/src/sonatype/SonatypeLib.scala @@ -74,18 +74,20 @@ final case class SonatypeLib( artifacts, new URL(deployURI ++ releaseFolder), Some(credentials) ) - if (releaseFolder.endsWith("-SNAPSHOT")){ + val urls = if (releaseFolder.endsWith("-SNAPSHOT")){ publish(snapshotsURI) } else { val profile = getStagingProfile val repoId = createStagingRepo(profile) - publish( + val urls = publish( serviceURI ++ "/staging/deployByRepositoryId/" ++ repoId.string ) finishRelease( getStagingRepoById(repoId), profile ) + urls } System.err.println(lib.green("Successfully published to Sonatype!")) + urls } /* |