Skip to content

Commit 1cbc243

Browse files
committed
Final fixes
Signed-off-by: Antno Wilhelm <anton.wilhelm@here.com>
1 parent 496d491 commit 1cbc243

6 files changed

Lines changed: 8 additions & 15 deletions

File tree

.github/scripts/deploy.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,4 @@ echo $GPG_PRIVATE_KEY | base64 -d > private.key
1616
gpg --import --batch private.key
1717

1818
# Deploy to Maven Central
19-
sbt sonatypeDropAll
20-
sbt publishSigned
21-
sbt sonatypeCentralRelease
19+
sbt "publishSigned; sonaUpload; sonaRelease"

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
run: ./.github/scripts/push-tag.sh
3737
- name: Deploy
3838
env:
39-
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
40-
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
39+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
40+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
4141
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
4242
GPG_PRIVATE_KEY: ${{ secrets.GPG_KEY }}
4343
run: ./.github/scripts/deploy.sh

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
distribution: 'adopt'
3030

3131
- name: Cache SBT
32-
uses: actions/cache@v2
32+
uses: actions/cache@v3
3333
with:
3434
path: |
3535
~/.ivy2/cache

build.sbt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._
22
import sbtrelease.Version
33
import scala.xml.{Node => XmlNode, NodeSeq => XmlNodeSeq, _}
44
import scala.xml.transform._
5-
import xerial.sbt.Sonatype.sonatypeCentralHost
65

76
val organizationSettings: Seq[Setting[_]] = Seq(
87
scalaVersion := "2.12.15",
@@ -94,15 +93,14 @@ lazy val `sbt-bom` = project
9493
)
9594

9695
lazy val publishSettings = Seq(
97-
ThisBuild / publishTo := {
96+
publishTo := {
9897
val centralSnapshots = "https://central.sonatype.com/repository/maven-snapshots/"
9998
if (isSnapshot.value) Some("central-snapshots" at centralSnapshots)
10099
else localStaging.value
101100
},
102101
pomIncludeRepository := { _ => false },
103102
publishMavenStyle := true,
104103
sbtPluginPublishLegacyMavenStyle := false,
105-
sonatypeCredentialHost := sonatypeCentralHost,
106104
publishConfiguration := publishConfiguration.value.withOverwrite(true)
107105
)
108106

@@ -120,7 +118,6 @@ Global / onChangedBuildSource := ReloadOnSourceChanges
120118

121119
useGpgAgent := false
122120
useGpgPinentry := true
123-
sonatypeProfileName := "com.here"
124121

125122
// Defines the release process
126123
releaseIgnoreUntrackedFiles := true

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.9.8
1+
sbt.version=1.11.3

project/plugins.sbt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.6.5")
33
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "1.1.0")
44
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.6.0")
55
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "1.0.2")
6-
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0")
76
addSbtPlugin("com.here.platform.artifact" % "sbt-resolver" % "2.0.31")
87
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.8")
9-
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.0")
10-
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.13")
11-
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.12.2")
8+
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.4.0")
9+
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.1")

0 commit comments

Comments
 (0)