-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
70 lines (57 loc) · 2.04 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
68
69
val scala3Version = "3.1.0"
// library name
name := "bps-scala"
// library version
version := "0.1.0"
/////////////////////////////////////////////////////////////////
// This section activates scala-native
// // Set to false or remove if you want to show stubs as linking errors
// nativeLinkStubs := false
// //
// enablePlugins(ScalaNativePlugin)
/////////////////////////////////////////////////////////////////
// begin maven etc. publishing information
// groupId, SCM, license information
organization := "org.maraist"
homepage := Some(url("https://github.com/jphmrst/bps-scala"))
scmInfo := Some(ScmInfo(
url("https://github.com/jphmrst/bps-scala"),
"[email protected]:jphmrst/bps-scala.git"))
developers := List(Developer(
"jphmrst", "jphmrst", "[email protected]",
url("https://maraist.org/work/")))
licenses += (
"Educational",
url("https://github.com/jphmrst/bps-scala/blob/master/LICENSE.txt"))
// add sonatype repository settings
// snapshot versions publish to sonatype snapshot repository
// other versions publish to sonatype staging repository
pomIncludeRepository := { _ => false }
val nexus = "https://s01.oss.sonatype.org/"
publishTo := {
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishMavenStyle := true
ThisBuild / versionScheme := Some("semver-spec")
// end of maven etc. publishing section
/////////////////////////////////////////////////////////////////
Global / excludeLintKeys ++= Set(scalacOptions)
Compile / doc / scalacOptions ++= Seq(
"-groups",
"-doc-root-content", "rootdoc.txt"
)
lazy val main = project
.in(file("."))
.settings(
scalaVersion := scala3Version,
libraryDependencies ++= Seq(
"org.scalactic" %% "scalactic" % "3.2.9",
"org.scalatest" %% "scalatest" % "3.2.9" % "test"
),
compile / watchTriggers += baseDirectory.value.toGlob / "build.sbt",
unmanagedSources / excludeFilter := ".#*",
scalacOptions ++= Seq( "-source:future-migration" ),
)