Skip to content

Commit 72d1da2

Browse files
committed
chore: update release process to use sonatype
1 parent f957b29 commit 72d1da2

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

build.sbt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
organization := "com.algolia"
22
name := "algoliasearch-scala"
33
description := "Scala client for Algolia Search API"
4-
version := "1.39.1"
54
crossScalaVersions := Seq("2.11.12", "2.12.10", "2.13.1")
65
scalaVersion := "2.13.1"
76
testOptions in Test += Tests.Argument("-P10")
@@ -24,6 +23,8 @@ developers += Developer(
2423
2524
url("https://github.com/algolia/algoliasearch-client-scala/")
2625
)
26+
publishTo := sonatypePublishToBundle.value
27+
pgpSigningKey := Credentials.forHost(credentials.value, "pgp").map(_.userName) // related to https://github.com/sbt/sbt-pgp/issues/170
2728

2829
lazy val root = project
2930
.in(file("."))

project/plugins.sbt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.9.0")
22
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.4.0")
33
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.10.0-RC1")
4-
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.6")
54
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.3.1")
5+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.7")
6+
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")

release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -e
33

44
version=$(polyglot git next-version)
55
polyglot changelog "$version"
6-
sed -i '' "s/^version \:=.*\$/version := \"${version}\"/" build.sbt
6+
sed -i '' "s/^version \:=.*\$/version := \"${version}\"/" version.sbt
77
git add CHANGELOG.md build.sbt
88
git commit -m "chore: Release version $version"
9-
git tag "$version"
9+
git tag "$version"

version.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version in ThisBuild := "1.40.0"

0 commit comments

Comments
 (0)