This repository has been archived by the owner on Jun 18, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
68 lines (51 loc) · 1.66 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
name := "monadic-jfx"
version := "0.1.1"
organization := "com.elderresearch"
description := "Enrichment classes over JavaFX bindings to provide monadic operations in Scala."
licenses := Seq("Apache License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
startYear := Some(2015)
homepage := Some(url("http://github.com/ElderResearch/monadic-jfx"))
scalaVersion := "2.11.7"
javaVersionPrefix in javaVersionCheck := Some("1.8")
val catsVersion = "0.2.0"
libraryDependencies ++= Seq(
"org.spire-math" %% "cats-core" % catsVersion,
"org.spire-math" %% "cats-laws" % catsVersion % "test",
"org.typelevel" %% "discipline" % "0.4" % "test",
"org.scalatest" %% "scalatest" % "3.0.0-M7" % "test"
)
// Force Java8 compliance at startup.
onLoad in Global := {
val previous = (onLoad in Global).value
val checker = (s: State) => {
Project.runTask(javaVersionCheck, s).map(_._1).getOrElse(s)
}
checker compose previous
}
// Testing
testOptions in Test ++= {
if (System.getenv("TRAVIS") != null) {
Seq(Tests.Filter(s ⇒ !s.endsWith("ExampleTest")))
}
else {
Seq.empty
}
}
fork in Test := true
// Publishing
publishMavenStyle := true
publishArtifact in Test := false
pomExtra in Global := {
<scm>
<url>http://github.com/ElderResearch/monadic-jfx</url>
<connection>scm:git:https://github.com/ElderResearch/monadic-jfx.git</connection>
<developerConnection>scm:git:git@github.com:/ElderResearch/monadic-jfx.git</developerConnection>
</scm>
<developers>
<developer>
<id>metasim</id>
<name>Simeon H.K. Fitch</name>
<url>https://github.com/metasim</url>
</developer>
</developers>
}