diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-04 02:25:49 +0000 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-04 20:43:13 -0500 |
commit | 7c8be631d5c2b9fde573163b86fd11bf09ce65dd (patch) | |
tree | 70e7a9e9c9c8519cba9c419c0c57b7c0e85337bb /plugins/sonatype-release/src/sonatype/SonatypeLib.scala | |
parent | 7f24968807013edd923ec472dc0fc5409544a768 (diff) | |
download | cbt-7c8be631d5c2b9fde573163b86fd11bf09ce65dd.tar.gz cbt-7c8be631d5c2b9fde573163b86fd11bf09ce65dd.tar.bz2 cbt-7c8be631d5c2b9fde573163b86fd11bf09ce65dd.zip |
[sonatype] unify sonatype plugin code-style with rest of cbt
- indent parameter lists like other cbt code
- avoid stripMargin for style reasons
also add logger, eventhough not used right now
Diffstat (limited to 'plugins/sonatype-release/src/sonatype/SonatypeLib.scala')
-rw-r--r-- | plugins/sonatype-release/src/sonatype/SonatypeLib.scala | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/plugins/sonatype-release/src/sonatype/SonatypeLib.scala b/plugins/sonatype-release/src/sonatype/SonatypeLib.scala index 9aab9f5..4666950 100644 --- a/plugins/sonatype-release/src/sonatype/SonatypeLib.scala +++ b/plugins/sonatype-release/src/sonatype/SonatypeLib.scala @@ -52,10 +52,11 @@ object SonatypeLib { } final class SonatypeLib( - sonatypeServiceURI: String, - sonatypeSnapshotsURI: String, - sonatypeCredentials: String, - profileName: String)(lib: Lib) { + sonatypeServiceURI: String, + sonatypeSnapshotsURI: String, + sonatypeCredentials: String, + profileName: String +)( lib: Lib, log: String => Unit ) { private val sonatypeApi = new SonatypeHttpApi(sonatypeServiceURI, sonatypeCredentials, profileName)(sonatypeLogger) @@ -66,14 +67,14 @@ final class SonatypeLib( * • publish jars to created repo */ def sonatypePublishSigned( - sourceFiles: Seq[File], - artifacts: Seq[File], - groupId: String, - artifactId: String, - version: String, - isSnapshot: Boolean, - scalaMajorVersion: String - ): ExitCode = { + sourceFiles: Seq[File], + artifacts: Seq[File], + groupId: String, + artifactId: String, + version: String, + isSnapshot: Boolean, + scalaMajorVersion: String + ): ExitCode = { if(sourceFiles.nonEmpty) { System.err.println(lib.blue("Staring publishing to Sonatype.")) @@ -107,10 +108,10 @@ final class SonatypeLib( * • drop this repo. */ def sonatypeRelease( - groupId: String, - artifactId: String, - version: String - ): ExitCode = { + groupId: String, + artifactId: String, + version: String + ): ExitCode = { val profile = getStagingProfile() sonatypeApi.getStagingRepos(profile).toList match { |