Skip to content

Commit 072c1b8

Browse files
authored
Fix publishTo
Remove publishTo configuration for sbt.
1 parent c5e9d68 commit 072c1b8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

build.sbt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,7 @@ libraryDependencies ++= Seq(
1515
),
1616
)
1717
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature")
18-
publishTo := {
19-
val nexus = "https://oss.sonatype.org/"
20-
if (isSnapshot.value)
21-
Some("snapshots" at nexus + "content/repositories/snapshots")
22-
else
23-
Some("releases" at nexus + "service/local/staging/deploy/maven2")
24-
}
18+
publishTo := (if (isSnapshot.value) None else localStaging.value)
2519
publishMavenStyle := true
2620
pomIncludeRepository := { x => false }
2721
pomExtra := (<url>https://github.com/gitbucket/sbt-gitbucket-plugin/</url>

0 commit comments

Comments
 (0)