-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
69 lines (56 loc) · 2.05 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
name := "jaskell-core"
lazy val scala213 = "2.13.8"
lazy val scala212 = "2.12.15"
lazy val scala211 = "2.11.12"
lazy val scala312 = "3.1.2"
lazy val supportedScalaVersions = List(scala213, scala212, scala211)
version := "0.8.3"
scalaVersion := scala213
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.15" % "test"
libraryDependencies += "org.xerial" % "sqlite-jdbc" % "3.40.1.0" % "test"
crossScalaVersions := supportedScalaVersions
ThisBuild / organization := "io.github.marchliu"
ThisBuild / organizationName := "Mars Liu"
ThisBuild / organizationHomepage := Some(url("https://marchliu.github.io/"))
def scalacOptionsVersion(scalaVersion: String): Seq[String] = {
Seq(
"-unchecked",
"-deprecation",
"-Xlint",
"-Xfatal-warnings",
"-Ywarn-dead-code",
"-encoding", "UTF-8"
) ++(CrossVersion.partialVersion(scalaVersion) match {
case Some((2, scalaMajor)) if scalaMajor == 11 => Seq("-Xexperimental")
case _ => Nil
})
}
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/MarchLiu/jaskell-core"),
"scm:[email protected]:MarchLiu/jaskell-core.git"
)
)
ThisBuild / developers := List(
Developer(
id = "Mars Liu",
name = "Liu Xin",
email = "[email protected]",
url = url("https://marchliu.github.io/")
)
)
ThisBuild / description := "Jaskell Core components Library, written by scala"
ThisBuild / licenses := List("MIT" -> new URL("https://github.com/MarchLiu/jaskell-core/blob/master/LICENSE"))
ThisBuild / homepage := Some(url("https://github.com/MarchLiu/jaskell-core"))
ThisBuild / versionScheme := Some("early-semver")
// Remove all additional repository other than Maven Central from POM
// ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
// ThisBuild / publishMavenStyle := true
val appSettings = Seq(
scalacOptions := scalacOptionsVersion(scalaVersion.value)
)