Skip to content

Commit 2ca6fff

Browse files
Add publishing settings
1 parent 1158c3b commit 2ca6fff

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build.sbt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,13 @@ libraryDependencies := Seq(
1313
)
1414

1515
scalacOptions in ThisBuild ++= Seq("-unchecked", "-deprecation")
16+
17+
publishTo := {
18+
val nexus = "https://oss.sonatype.org/"
19+
if (isSnapshot.value)
20+
Some("snapshots" at nexus + "content/repositories/snapshots")
21+
else
22+
Some("releases" at nexus + "service/local/staging/deploy/maven2")
23+
}
24+
25+
credentials += Credentials(Path.userHome / ".sonatype")

0 commit comments

Comments
 (0)