-
Notifications
You must be signed in to change notification settings - Fork 23
/
build.sbt
60 lines (44 loc) · 1.53 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
enablePlugins(GitVersioning)
git.useGitDescribe := true
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature")
scalacOptions ++= {
val Seq(_, major, minor) = (scalaVersion in ThisBuild).value.split("\\.").toSeq.map(_.toInt)
if (major <= 10 || (major == 11 && minor < 5)) Seq.empty
else Seq("-Ypatmat-exhaust-depth", "40")
}
javaOptions in IntegrationTest ++= Seq("-Xss128M")
fork in IntegrationTest := true
libraryDependencies += "org.scalatest" %% "scalatest" % "3.1.0-RC3" % "test"
logBuffered in IntegrationTest := false
parallelExecution in Test := true
lazy val commonSettings = Seq(
organization := "com.regblanc",
name := "scala-smtlib",
scalaVersion := "2.13.1",
crossScalaVersions := Seq("2.10.4", "2.11.8", "2.12.1", "2.13.1")
)
lazy val root = (project in file(".")).
configs(IntegrationTest).
settings(commonSettings: _*).
settings(Defaults.itSettings: _*)
publishMavenStyle := true
publishArtifact in Test := false
publishTo := {
val nexus = "https://oss.sonatype.org/"
if(version.value.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
pomIncludeRepository := { _ => false }
licenses := Seq("MIT-style" -> url("https://opensource.org/licenses/MIT"))
pomExtra := (
<url>https://github.com/regb/scala-smtlib</url>
<developers>
<developer>
<id>reg</id>
<name>Regis Blanc</name>
<url>http://regblanc.com</url>
</developer>
</developers>
)