Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ ThisBuild / developers := List(
url = url("http://eed3si9n.com")
)
)
ThisBuild / publishTo := {
val centralSnapshots = "https://central.sonatype.com/repository/maven-snapshots/"
val v = (ThisBuild / version).value
if (v.endsWith("SNAPSHOT")) Some("central-snapshots" at centralSnapshots)
else localStaging.value
}

lazy val commonSettings = Seq(
scalacOptions := Seq("-deprecation", "-unchecked", "-feature", "-language:implicitConversions", "-language:postfixOps"),
Expand All @@ -43,7 +49,8 @@ lazy val root = (project in file("."))
commands += Command.command("release") { state =>
"clean" ::
"+app/publishSigned" ::
"++2.12.20!;scalaxbPlugin/publishSigned" ::
"++2.12.x;scalaxbPlugin/publishSigned" ::
"++3.x;scalaxbPlugin/publishSigned" ::
state
}
})
Expand Down Expand Up @@ -95,7 +102,7 @@ lazy val scalaxbPlugin = (project in file("sbt-scalaxb"))
pluginCrossBuild / sbtVersion := {
scalaBinaryVersion.value match {
case "2.12" => "1.5.8" // set minimum sbt version
case _ => "2.0.0-RC3"
case _ => "2.0.0-RC4"
}
}
crossScalaVersions := Seq(scala212, scala3ForSbt)
Expand Down
8 changes: 0 additions & 8 deletions project/common.scala
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,5 @@ object Common {

val sonatypeSettings: Seq[Def.Setting[_]] = Seq(
Test / publishArtifact := false,
resolvers ++= Seq(
"sonatype-public" at "https://oss.sonatype.org/content/repositories/public"),
publishTo := {
val v = version.value
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
)
}
Loading