Skip to content

Commit

Permalink
Publish to sonatype
Browse files Browse the repository at this point in the history
  • Loading branch information
keirlawson committed Feb 13, 2021
1 parent 4a18245 commit 4639972
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 5 deletions.
34 changes: 33 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name := "ciris-aws-secretsmanager"
organization := "com.ovoenergy"
bintrayOrganization := Some("ovotech")
licenses += ("MIT", url("http://opensource.org/licenses/MIT"))

scalaVersion := "2.13.4"
Expand All @@ -13,4 +12,37 @@ libraryDependencies ++= Seq(
"org.scalameta" %% "munit" % "0.7.11" % Test
)

publishTo := sonatypePublishToBundle.value

testFrameworks += new TestFramework("munit.Framework")

sonatypeProfileName := "com.ovoenergy"
publishMavenStyle := true

homepage := Some(url("https://github.com/ovotech/ciris-aws-secretsmanager"))
scmInfo := Some(
ScmInfo(
url("https://github.com/ovotech/ciris-aws-secretsmanager"),
"scm:git@github.com:ovotech/ciris-aws-secretsmanager.git"
)
)
developers := List(
Developer(id="keirlawson", name="Keir Lawson", email="keirlawson@gmail.com", url=url("https://github.com/keirlawson/"))
)

import ReleaseTransformations._

releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
releaseStepCommand("sonatypeBundleRelease"),
setNextVersion,
commitNextVersion,
pushChanges
)
3 changes: 2 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.12")
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.5")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.2.1")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.5")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.1.1")
4 changes: 1 addition & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ This module is heavily derived from the existing [Ciris SSM module](https://gith
To get started with [sbt](https://www.scala-sbt.org), simply add the following lines to your `build.sbt` file.

```scala
resolvers += Resolver.bintrayRepo("ovotech", "maven")

libraryDependencies += "com.ovoenergy" %% "ciris-aws-secretsmanager" % "1.0.0"
libraryDependencies += "com.ovoenergy" %% "ciris-aws-secretsmanager" % "3.0.1"
```

The library is published for Scala 2.12 and 2.13.
Expand Down

0 comments on commit 4639972

Please sign in to comment.