Skip to content

Commit

Permalink
Zet release versie
Browse files Browse the repository at this point in the history
Dit wordt dan versie 2.0
  • Loading branch information
maesenka committed Jul 14, 2023
1 parent 9ccd632 commit 5af5cf3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
16 changes: 6 additions & 10 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
val Organization = "be.wegenenverkeer"

val Version = "2.0-RC2"
val Version = "2.0"

val ScalaVersion = "2.13.0"

Expand Down Expand Up @@ -165,25 +165,21 @@ lazy val pomInfo = <url>https://github.com/WegenenVerkeer/atomium</url>
val publishingCredentials = (for {
username <- Option(System.getenv().get("SONATYPE_USERNAME"))
password <- Option(System.getenv().get("SONATYPE_PASSWORD"))
} yield
} yield {
println(s"username: $username; passwd: $password")
Seq(
Credentials("Sonatype Nexus Repository Manager",
"oss.sonatype.org",
username,
password))).getOrElse(Seq())
password))
}).getOrElse(Seq())

val publishSettings = Seq(
publishMavenStyle := true,
pomIncludeRepository := { _ =>
false
},
publishTo := {
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")
},
publishTo := sonatypePublishToBundle.value,
pomExtra := pomInfo,
credentials ++= publishingCredentials
)
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "1.5.1")

// supports release in maven central
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.4")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.1")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")

0 comments on commit 5af5cf3

Please sign in to comment.