Skip to content

Commit ac1d930

Browse files
authored
Fix sonatype publishTo
1 parent 28dd64a commit ac1d930

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

build.sbt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,8 @@ publishArtifact in Test := false
1919
pomIncludeRepository := { _ =>
2020
false
2121
}
22-
publishTo := {
23-
val nexus = "https://oss.sonatype.org/"
24-
if (version.value.trim.endsWith("SNAPSHOT"))
25-
Some("snapshots" at nexus + "content/repositories/snapshots")
26-
else
27-
Some("releases" at nexus + "service/local/staging/deploy/maven2")
28-
}
22+
// Add the default sonatype repository setting
23+
publishTo := sonatypePublishTo.value
2924

3025
organizationName := "Codacy"
3126
organizationHomepage := Some(new URL("https://www.codacy.com"))

0 commit comments

Comments
 (0)