Skip to content

Commit 8a02b55

Browse files
committed
Add publishTo settings
1 parent 3b5536e commit 8a02b55

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build.sbt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ val buildSettings = Seq[Setting[_]](
4343
releaseStepCommand("sonatypeReleaseAll"),
4444
pushChanges
4545
),
46+
// Add sonatype repository settings
47+
publishTo := Some(
48+
if (isSnapshot.value)
49+
Opts.resolver.sonatypeSnapshots
50+
else
51+
Opts.resolver.sonatypeStaging
52+
),
4653
// Find bugs
4754
findbugsReportType := Some(FindbugsReport.FancyHtml),
4855
findbugsReportPath := Some(crossTarget.value / "findbugs" / "report.html"),

0 commit comments

Comments
 (0)