File tree Expand file tree Collapse file tree 3 files changed +7
-12
lines changed Expand file tree Collapse file tree 3 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,8 @@ publishArtifact in Test := false
19
19
pomIncludeRepository := { _ =>
20
20
false
21
21
}
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
29
24
30
25
organizationName := " Codacy"
31
26
organizationHomepage := Some (new URL (" https://www.codacy.com" ))
Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ resolvers ++= Seq(DefaultMavenRepository,
7
7
Classpaths .sbtPluginReleases)
8
8
9
9
// Sonatype publishing
10
- addSbtPlugin(" org.xerial.sbt" % " sbt-sonatype" % " 0.5.1 " )
11
- addSbtPlugin(" com.jsuereth" % " sbt-pgp" % " 1.0.0 " )
10
+ addSbtPlugin(" org.xerial.sbt" % " sbt-sonatype" % " 2.3 " )
11
+ addSbtPlugin(" com.jsuereth" % " sbt-pgp" % " 1.1.2-1 " )
12
12
13
13
// Dependency updates
14
- addSbtPlugin(" com.timushev.sbt" % " sbt-updates" % " 0.1.9 " )
14
+ addSbtPlugin(" com.timushev.sbt" % " sbt-updates" % " 0.3.4 " )
15
15
16
16
// Coverage
17
17
addSbtPlugin(" org.scoverage" % " sbt-scoverage" % " 1.5.1" )
18
- addSbtPlugin(" com.codacy" % " sbt-codacy-coverage" % " 1.3.12 " )
18
+ addSbtPlugin(" com.codacy" % " sbt-codacy-coverage" % " 1.3.15 " )
Original file line number Diff line number Diff line change 17
17
echo " Publishing version ${VERSION} "
18
18
if [[ -n " $CI " ]] && [[ " $CURRENT_BRANCH " == " $PUBLISH_BRANCH " || " $CIRCLE_BRANCH " == " $PUBLISH_BRANCH " ]]; then
19
19
sbt ' set version := "' " ${VERSION} " ' "' ' set pgpPassphrase := Some("' " $SONATYPE_GPG_PASSPHRASE " ' ".toCharArray)' +publishSigned
20
- sbt ' set version := "' " ${VERSION} " ' "' +sonatypeRelease
20
+ sbt ' set version := "' " ${VERSION} " ' "' +sonatypeReleaseAll
21
21
else
22
22
sbt ' set version := "' " ${VERSION} " ' "' +publishLocal
23
23
fi
You can’t perform that action at this time.
0 commit comments