forked from regb/scala-smtlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
64 lines (48 loc) · 1.68 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
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>
<scm>
<url>git@github.com:regb/scala-smtlib.git</url>
<connection>scm:git:git@github.com:regb/scala-smtlib.git</connection>
</scm>
<developers>
<developer>
<id>reg</id>
<name>Regis Blanc</name>
<url>http://regblanc.com</url>
</developer>
</developers>
)