|
1 | 1 | import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations.* |
| 2 | +import sbtrelease.ReleaseStateTransformations.{checkSnapshotDependencies, inquireVersions, runClean} |
2 | 3 | import xerial.sbt.Sonatype.* |
| 4 | + |
| 5 | +ThisBuild / sonatypeCredentialHost := sonatypeCentralHost |
3 | 6 | organization := "io.github.gmkumar2005" |
4 | 7 | organizationName := "io.github.gmkumar2005" |
5 | 8 | scalaVersion := "2.12.20" |
@@ -53,19 +56,27 @@ lazy val root = (project in file(".")).settings( |
53 | 56 | setReleaseVersion, |
54 | 57 | commitReleaseVersion, |
55 | 58 | tagRelease, |
56 | | - ReleaseStep(action = Command.process("publishSigned", _)), |
| 59 | + ReleaseStep(action = st => Command.process("publishSigned", st, _ => ())), |
57 | 60 | setNextVersion, |
58 | 61 | commitNextVersion |
59 | 62 | ), |
60 | | - publishTo := { |
61 | | - val nexus = "https://s01.oss.sonatype.org/" |
62 | | - if (isSnapshot.value) |
63 | | - Some("snapshots" at nexus + "content/repositories/snapshots") |
64 | | - else |
65 | | - Some("releases" at nexus + "service/local/staging/deploy/maven2") |
66 | | - }, |
| 63 | + publishMavenStyle := true, |
| 64 | + publishTo := sonatypePublishToBundle.value, |
| 65 | + // publishTo := { |
| 66 | + // val nexus = "https://s01.oss.sonatype.org/" |
| 67 | + // if (isSnapshot.value) |
| 68 | + // Some("snapshots" at nexus + "content/repositories/snapshots") |
| 69 | + // else |
| 70 | + // Some("releases" at nexus + "service/local/staging/deploy/maven2") |
| 71 | + // }, |
| 72 | +// credentials += Credentials( |
| 73 | +// "Sonatype Nexus Repository Manager", |
| 74 | +// "s01.oss.sonatype.org", |
| 75 | +// sys.env("SONATYPE_USERNAME"), |
| 76 | +// sys.env("SONATYPE_PASSWORD")), |
| 77 | + |
67 | 78 | // For all Sonatype accounts created on or after February 2021 |
68 | | - sonatypeCredentialHost := "s01.oss.sonatype.org", |
| 79 | + // sonatypeCredentialHost := "s01.oss.sonatype.org", |
69 | 80 | Test / parallelExecution := true, |
70 | 81 | Test / publishArtifact := false, |
71 | 82 | usePgpKeyHex("F7E440260BAE93EB4AD2723D6613CA76E011F638") |
|
0 commit comments