diff --git a/build.sbt b/build.sbt index 744f030..d7d7176 100644 --- a/build.sbt +++ b/build.sbt @@ -1,12 +1,13 @@ val _scalaVersion = "3.8.0" -organization := "io.github.makingthematrix" +ThisBuild / organization := "io.github.makingthematrix" name := "signals3" -homepage := Some(url("https://github.com/makingthematrix/signals3")) -licenses := Seq("GPL 3.0" -> url("https://www.gnu.org/licenses/gpl-3.0.en.html")) +ThisBuild / homepage := Some(url("https://github.com/makingthematrix/signals3")) +ThisBuild / licenses := Seq("GPL 3.0" -> url("https://www.gnu.org/licenses/gpl-3.0.en.html")) ThisBuild / scalaVersion := _scalaVersion ThisBuild / versionScheme := Some("semver-spec") Test / scalaVersion := _scalaVersion +ThisBuild / description := "A lightweight event streaming library for Scala" val standardOptions = Seq( "-deprecation", @@ -54,11 +55,16 @@ Test / parallelExecution := true fork := true Test / fork := true -// TODO: Rewrite this to use the new Sonatype publication mechanism -publishMavenStyle := true -Test / publishArtifact := false -pomIncludeRepository := { _ => false } -resolvers ++= Seq(Resolver.mavenLocal) -exportJars := true +// new setting for the Central Portal +ThisBuild / publishTo := { + val centralSnapshots = "https://central.sonatype.com/repository/maven-snapshots/" + if (isSnapshot.value) Some("central-snapshots" at centralSnapshots) + else localStaging.value +} +// Remove all additional repository other than Maven Central from POM +ThisBuild / pomIncludeRepository := { _ => false } +ThisBuild / publishMavenStyle := true +ThisBuild / exportJars := true + Compile / packageBin / packageOptions += Package.ManifestAttributes("Automatic-Module-Name" -> "signals3") diff --git a/project/plugins.sbt b/project/plugins.sbt index 07cd3bb..f013b37 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,2 +1,2 @@ addSbtPlugin("com.github.sbt" % "sbt-jacoco" % "3.4.0") - +addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.1") diff --git a/version.sbt b/version.sbt index 84e6620..241e404 100644 --- a/version.sbt +++ b/version.sbt @@ -1 +1 @@ -ThisBuild / version := "1.1.1" +ThisBuild / version := "1.2.0-M1"