Skip to content

Commit

Permalink
Merge pull request #241 from ua-parser/update-release-config
Browse files Browse the repository at this point in the history
Configure sbt-release to ease the release process
  • Loading branch information
thyandrecardoso authored Apr 27, 2024
2 parents 6bab68b + 3458e37 commit de172fd
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import ReleaseTransformations._

name := "uap-scala"
organization := "org.uaparser"

Expand Down Expand Up @@ -58,8 +60,25 @@ publishTo := {
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
Test / publishArtifact := false

releaseCrossBuild := true
releasePublishArtifactsAction := PgpKeys.publishSigned.value
releaseTagComment := s"Release ${(ThisBuild / version).value}"
releaseCommitMessage := s"Set version to ${(ThisBuild / version).value}"

releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
releaseStepCommand("sonatypeBundleRelease"),
setNextVersion,
commitNextVersion,
pushChanges
)

pomExtra := (
<url>https://github.com/ua-parser/uap-scala</url>
Expand Down

0 comments on commit de172fd

Please sign in to comment.