-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
67 lines (56 loc) · 1.79 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import Dependencies._
ThisBuild / versionScheme := Some("early-semver")
ThisBuild / organization := "io.github.dataunitylab"
ThisBuild / organizationName := "Data Unity Lab"
Global / onChangedBuildSource := ReloadOnSourceChanges
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]"))
ThisBuild / sonatypeCredentialHost := "s01.oss.sonatype.org"
val nonConsoleCompilerOptions = Seq(
"-feature",
"-Xfatal-warnings",
"-Ywarn-unused:imports",
"-deprecation"
)
lazy val root = (project in file("."))
.settings(
name := "Fuzzy Sets",
crossScalaVersions := Seq("2.12.15", "2.13.10"),
libraryDependencies += scalaTest % Test,
scalacOptions ++= nonConsoleCompilerOptions
)
wartremoverErrors ++= Seq(
Wart.ArrayEquals,
Wart.EitherProjectionPartial,
Wart.Enumeration,
Wart.ExplicitImplicitTypes,
Wart.FinalCaseClass,
Wart.MutableDataStructures,
Wart.Null,
Wart.Option2Iterable,
Wart.OptionPartial,
Wart.PublicInference,
Wart.Recursion,
Wart.Return,
Wart.StringPlusAny,
Wart.TryPartial,
Wart.Var,
Wart.While,
)
Compile / compile / wartremoverErrors += Wart.NonUnitStatements
Compile / console / scalacOptions := (console / scalacOptions)
.value.filterNot(opt =>
opt.contains("wartremover") ||
nonConsoleCompilerOptions.contains(opt)
)
enablePlugins(GitHubPagesPlugin)
enablePlugins(GitVersioning)
enablePlugins(SiteScaladocPlugin)
gitHubPagesOrgName := "dataunitylab"
gitHubPagesRepoName := "fuzzy-sets"
gitHubPagesSiteDir := baseDirectory.value / "target/site"
git.remoteRepo := "[email protected]:dataunitylab/fuzzy-sets.git"
git.useGitDescribe := true