Skip to content

Commit f9b3ef7

Browse files
committed
publish repository
1 parent 0cc518d commit f9b3ef7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

build.sbt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,12 @@ scalacOptions += "-P:continuations:enable"
5151
// code coverage
5252
scoverage.ScoverageSbtPlugin.ScoverageKeys.coverageHighlighting := false
5353

54+
// maven publishing
55+
publishTo := {
56+
val nexus = "https://oss.sonatype.org/"
57+
val repo = if (version.value.trim.endsWith("SNAPSHOT"))
58+
"snapshots" at nexus + "content/repositories/snapshots"
59+
else
60+
"releases" at nexus + "service/local/staging/deploy/maven2"
61+
Some(repo)
62+
}

0 commit comments

Comments
 (0)