forked from Sciss/Span
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
63 lines (56 loc) · 1.94 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
lazy val baseName = "Span"
lazy val baseNameL = baseName.toLowerCase
lazy val projectVersion = "2.0.2"
lazy val mimaVersion = "2.0.0"
lazy val deps = new {
val main = new {
val serial = "2.0.1"
}
val test = new {
val scalaTest = "3.2.9"
}
}
lazy val commonJvmSettings = Seq(
crossScalaVersions := Seq("3.0.0", "2.13.5", "2.12.13"),
)
// sonatype plugin requires that these are in global
ThisBuild / version := projectVersion
ThisBuild / organization := "de.sciss"
lazy val root = crossProject(JSPlatform, JVMPlatform).in(file("."))
.settings(
name := baseName,
// version := projectVersion,
// organization := "de.sciss",
scalaVersion := "2.13.5",
description := "A simple data type for describing sample frame intervals",
homepage := Some(url(s"https://git.iem.at/sciss/${name.value}")),
licenses := Seq("LGPL v2.1+" -> url( "http://www.gnu.org/licenses/lgpl-2.1.txt")),
mimaPreviousArtifacts := Set("de.sciss" %% baseNameL % mimaVersion),
initialCommands in console := """import de.sciss.span._""",
scalacOptions := Seq("-deprecation", "-unchecked", "-feature", "-encoding", "utf8", "-Xlint", "-Xsource:2.13"),
libraryDependencies ++= Seq(
"de.sciss" %%% "serial" % deps.main.serial,
"org.scalatest" %%% "scalatest" % deps.test.scalaTest % Test,
)
)
.jvmSettings(commonJvmSettings)
.settings(publishSettings)
// ---- publishing ----
lazy val publishSettings = Seq(
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := { _ => false },
developers := List(
Developer(
id = "sciss",
name = "Hanns Holger Rutz",
email = "[email protected]",
url = url("https://www.sciss.de")
)
),
scmInfo := {
val h = "git.iem.at"
val a = s"sciss/${name.value}"
Some(ScmInfo(url(s"https://$h/$a"), s"scm:git@$h:$a.git"))
},
)