Skip to content
Open
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
18 changes: 10 additions & 8 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Dependencies._

ThisBuild / versionScheme := Some("early-semver")
ThisBuild / organization := "io.github.dataunitylab"
ThisBuild / versionScheme := Some("early-semver")
ThisBuild / organization := "io.github.dataunitylab"
ThisBuild / organizationName := "Data Unity Lab"

Global / onChangedBuildSource := ReloadOnSourceChanges
Expand All @@ -10,7 +10,9 @@ publishTo := sonatypePublishToBundle.value
publishMavenStyle := true
licenses := Seq("MIT" -> url("https://opensource.org/licenses/MIT"))
import xerial.sbt.Sonatype._
sonatypeProjectHosting := Some(GitHubHosting("dataunitylab", "fuzzy-sets", "[email protected]"))
sonatypeProjectHosting := Some(
GitHubHosting("dataunitylab", "fuzzy-sets", "[email protected]")
)
ThisBuild / sonatypeCredentialHost := "s01.oss.sonatype.org"

val nonConsoleCompilerOptions = Seq(
Expand All @@ -23,7 +25,7 @@ val nonConsoleCompilerOptions = Seq(
lazy val root = (project in file("."))
.settings(
name := "Fuzzy Sets",
crossScalaVersions := Seq("2.12.15", "2.13.10"),
crossScalaVersions := Seq("2.12.15", "2.13.16"),
libraryDependencies += scalaTest % Test,
scalacOptions ++= nonConsoleCompilerOptions
)
Expand All @@ -44,15 +46,15 @@ wartremoverErrors ++= Seq(
Wart.StringPlusAny,
Wart.TryPartial,
Wart.Var,
Wart.While,
Wart.While
)

Compile / compile / wartremoverErrors += Wart.NonUnitStatements

Compile / console / scalacOptions := (console / scalacOptions)
.value.filterNot(opt =>
Compile / console / scalacOptions := (console / scalacOptions).value.filterNot(
opt =>
opt.contains("wartremover") ||
nonConsoleCompilerOptions.contains(opt)
nonConsoleCompilerOptions.contains(opt)
)

enablePlugins(GitHubPagesPlugin)
Expand Down