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
24 changes: 15 additions & 9 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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")
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
addSbtPlugin("com.github.sbt" % "sbt-jacoco" % "3.4.0")

addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.1")
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ThisBuild / version := "1.1.1"
ThisBuild / version := "1.2.0-M1"
Loading