|
1 |
| -pomIncludeRepository := { _ => false } |
2 |
| - |
3 |
| -releaseCrossBuild := true |
4 |
| -releasePublishArtifactsAction := PgpKeys.publishSigned.value |
5 |
| -publishMavenStyle := true |
| 1 | +pomIncludeRepository := { _ => false } |
| 2 | +publishMavenStyle := true |
6 | 3 | Test / publishArtifact := false
|
7 |
| -publishTo := Some(if (isSnapshot.value) Opts.resolver.sonatypeOssSnapshots.head else Opts.resolver.sonatypeStaging) |
| 4 | +releaseCrossBuild := true |
| 5 | +versionScheme := Some("semver-spec") |
8 | 6 |
|
9 |
| -Global / PgpKeys.useGpg := true // workaround with pgp and sbt 1.2.x |
10 |
| -pgpSecretRing := pgpPublicRing.value // workaround with pgp and sbt 1.2.x |
11 |
| - |
12 |
| -pomExtra in Global := { |
13 |
| - <developers> |
14 |
| - <developer> |
15 |
| - <id>dacr</id> |
16 |
| - <name>David Crosson</name> |
17 |
| - <url>https://github.com/dacr</url> |
18 |
| - </developer> |
19 |
| - </developers> |
| 7 | +publishTo := { |
| 8 | + // For accounts created after Feb 2021: |
| 9 | + // val nexus = "https://s01.oss.sonatype.org/" |
| 10 | + val nexus = "https://oss.sonatype.org/" |
| 11 | + if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots") |
| 12 | + else Some("releases" at nexus + "service/local/staging/deploy/maven2") |
20 | 13 | }
|
21 | 14 |
|
22 |
| -releaseTagComment := s"Releasing ${(ThisBuild / version).value}" |
23 |
| -releaseCommitMessage := s"Setting version to ${(ThisBuild / version).value}" |
| 15 | +releasePublishArtifactsAction := PgpKeys.publishSigned.value |
| 16 | + |
| 17 | +releaseTagComment := s"Releasing ${(ThisBuild / version).value}" |
| 18 | +releaseCommitMessage := s"Setting version to ${(ThisBuild / version).value}" |
24 | 19 | releaseNextCommitMessage := s"[ci skip] Setting version to ${(ThisBuild / version).value}"
|
25 | 20 |
|
26 |
| -import ReleaseTransformations._ |
| 21 | +import ReleaseTransformations.* |
27 | 22 | releaseProcess := Seq[ReleaseStep](
|
28 | 23 | checkSnapshotDependencies,
|
29 | 24 | inquireVersions,
|
30 |
| - //runClean, |
| 25 | + runClean, |
31 | 26 | runTest,
|
32 | 27 | setReleaseVersion,
|
33 | 28 | commitReleaseVersion,
|
34 | 29 | tagRelease,
|
35 | 30 | publishArtifacts,
|
| 31 | + releaseStepCommand("sonatypeReleaseAll"), |
36 | 32 | setNextVersion,
|
37 | 33 | commitNextVersion,
|
38 |
| - releaseStepCommand("sonatypeReleaseAll"), |
39 | 34 | pushChanges
|
40 | 35 | )
|
0 commit comments