diff options
Diffstat (limited to 'stage2/Publish.scala')
-rw-r--r-- | stage2/Publish.scala | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/stage2/Publish.scala b/stage2/Publish.scala index 1cc3b70..96e856b 100644 --- a/stage2/Publish.scala +++ b/stage2/Publish.scala @@ -35,7 +35,7 @@ trait Publish extends PackageJars{ ) // ========== publish ========== - final protected def releaseFolder = s"/${groupId.replace(".","/")}/${artifactId}_$scalaMajorVersion/$version/" + final protected val releaseFolder = s"/${groupId.replace(".","/")}/${artifactId}_$scalaMajorVersion/$version/" private def snapshotUrl = new URL("https://oss.sonatype.org/content/repositories/snapshots") private def releaseUrl = new URL("https://oss.sonatype.org/service/local/staging/deploy/maven2") def publishUrl = if(version.endsWith("-SNAPSHOT")) snapshotUrl else releaseUrl @@ -50,6 +50,14 @@ trait Publish extends PackageJars{ copy( context.copy(version = Some(version+"-SNAPSHOT")) ).publishUnsigned } + def publishLocal: Unit = { + lib.publishLocal( sourceFiles, `package` :+ pom, context.paths.mavenCache, releaseFolder ) + } + + def publishSnapshotLocal: Unit = { + copy( context.copy(version = Some(version+"-SNAPSHOT")) ).publishLocal + } + def publishUnsigned: Unit = { lib.publishUnsigned( sourceFiles, `package` :+ pom, publishUrl ++ releaseFolder, sonatypeCredentials |