-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
30 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,35 @@ | ||
pomIncludeRepository := { _ => false } | ||
|
||
releaseCrossBuild := true | ||
releasePublishArtifactsAction := PgpKeys.publishSigned.value | ||
publishMavenStyle := true | ||
pomIncludeRepository := { _ => false } | ||
publishMavenStyle := true | ||
Test / publishArtifact := false | ||
publishTo := Some(if (isSnapshot.value) Opts.resolver.sonatypeOssSnapshots.head else Opts.resolver.sonatypeStaging) | ||
releaseCrossBuild := true | ||
versionScheme := Some("semver-spec") | ||
|
||
Global / PgpKeys.useGpg := true // workaround with pgp and sbt 1.2.x | ||
pgpSecretRing := pgpPublicRing.value // workaround with pgp and sbt 1.2.x | ||
|
||
pomExtra in Global := { | ||
<developers> | ||
<developer> | ||
<id>dacr</id> | ||
<name>David Crosson</name> | ||
<url>https://github.com/dacr</url> | ||
</developer> | ||
</developers> | ||
publishTo := { | ||
// For accounts created after Feb 2021: | ||
// val nexus = "https://s01.oss.sonatype.org/" | ||
val nexus = "https://oss.sonatype.org/" | ||
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots") | ||
else Some("releases" at nexus + "service/local/staging/deploy/maven2") | ||
} | ||
|
||
releaseTagComment := s"Releasing ${(ThisBuild / version).value}" | ||
releaseCommitMessage := s"Setting version to ${(ThisBuild / version).value}" | ||
releasePublishArtifactsAction := PgpKeys.publishSigned.value | ||
|
||
releaseTagComment := s"Releasing ${(ThisBuild / version).value}" | ||
releaseCommitMessage := s"Setting version to ${(ThisBuild / version).value}" | ||
releaseNextCommitMessage := s"[ci skip] Setting version to ${(ThisBuild / version).value}" | ||
|
||
import ReleaseTransformations._ | ||
import ReleaseTransformations.* | ||
releaseProcess := Seq[ReleaseStep]( | ||
checkSnapshotDependencies, | ||
inquireVersions, | ||
//runClean, | ||
runClean, | ||
runTest, | ||
setReleaseVersion, | ||
commitReleaseVersion, | ||
tagRelease, | ||
publishArtifacts, | ||
releaseStepCommand("sonatypeReleaseAll"), | ||
setNextVersion, | ||
commitNextVersion, | ||
releaseStepCommand("sonatypeReleaseAll"), | ||
pushChanges | ||
) |