File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,10 @@ lazy val commonSettings = Seq(
18
18
javaOptions ++= Seq (" -Xmx512m" , " -Djava.awt.headless=true" ),
19
19
scalacOptions ++= Seq (" -deprecation" , " -unchecked" ),
20
20
credentials += Credentials (Path .userHome / " .sbt" / " sonatype.credentials" ),
21
- publishTo := {
22
- val nexus = " https://oss.sonatype.org/"
23
- if (version.value.trim.endsWith(" SNAPSHOT" ))
24
- Some (" snapshots" at nexus + " content/repositories/snapshots" )
25
- else
26
- Some (" releases" at nexus + " service/local/staging/deploy/maven2" )
27
- },
21
+ publishTo := Some (
22
+ if (isSnapshot.value) Opts .resolver.sonatypeSnapshots
23
+ else Opts .resolver.sonatypeStaging
24
+ ),
28
25
publishMavenStyle := true ,
29
26
publishArtifact in Test := false ,
30
27
pomIncludeRepository := { _ => false },
Original file line number Diff line number Diff line change 1
1
addSbtPlugin(" com.dwijnand" % " sbt-dynver" % " 2.0.0" )
2
+ addSbtPlugin(" org.xerial.sbt" % " sbt-sonatype" % " 2.0" )
3
+ addSbtPlugin(" com.jsuereth" % " sbt-pgp" % " 1.1.0" )
You can’t perform that action at this time.
0 commit comments