Skip to content

Commit b646b9f

Browse files
committed
added plugins for release to sonatype
1 parent efcb9ad commit b646b9f

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

build.sbt

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@ developers := List(
1919
)
2020
)
2121

22+
23+
sonatypeProfileName := "org.polystat"
24+
sonatypeCredentialHost := "s01.oss.sonatype.org"
25+
scmInfo :=
26+
Some(
27+
ScmInfo(
28+
url("https://github.com/polystat/polystat-cli"),
29+
"scm:[email protected]:polystat/polystat-cli.git",
30+
)
31+
)
32+
publishTo := sonatypePublishToBundle.value
33+
publishArtifact := true
34+
releasePublishArtifactsAction := PgpKeys.publishSigned.value
35+
resolvers += Opts.resolver.sonatypeSnapshots
36+
2237
excludeDependencies ++= Seq(
2338
"org.scalatest" % "scalatest_2.13"
2439
)
@@ -101,7 +116,6 @@ scalacOptions ++= Seq(
101116
"-encoding",
102117
"UTF-8",
103118
"-feature",
104-
"-language:implicitConversions",
105119
)
106120

107121
commands += Command.single("preRelease") { (state, nextVersion) =>
@@ -118,6 +132,8 @@ commands += Command.single("preRelease") { (state, nextVersion) =>
118132
releaseStepTask(assembly),
119133
commitReleaseVersion,
120134
tagRelease,
135+
releaseStepCommandAndRemaining("publishSigned"),
136+
releaseStepCommand("sonatypeBundleRelease"),
121137
pushChanges,
122138
)
123139
),

project/plugins.sbt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ addSbtPlugin("com.codecommit" % "sbt-github-actions" % "0.14.2")
44
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")
55
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0")
66
addSbtPlugin("org.scalameta" % "sbt-native-image" % "0.3.1")
7+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.13")
8+
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")

0 commit comments

Comments
 (0)