-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
74 lines (53 loc) · 2.13 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
70
71
72
73
74
name := "scalaxy-parano"
organization := "com.nativelibs4java"
version := "0.4-SNAPSHOT"
scalaVersion := "2.11.6"
resolvers += Resolver.defaultLocal
resolvers += Resolver.sonatypeRepo("snapshots")
libraryDependencies <+= scalaVersion("org.scala-lang" % "scala-compiler" % _)
libraryDependencies <+= scalaVersion("org.scala-lang" % "scala-reflect" % _)
libraryDependencies ++= Seq(
"org.scalatest" % "scalatest_2.11" % "2.2.3" % "test",
"org.scalamock" % "scalamock-scalatest-support_2.11" % "3.1.2",
"junit" % "junit" % "4.12" % "test",
"com.novocode" % "junit-interface" % "0.11" % "test"
)
testOptions in Global += Tests.Argument(TestFrameworks.JUnit, "-v")
fork in Test := true
scalacOptions ++= Seq(
"-encoding", "UTF-8",
"-deprecation", "-feature", "-unchecked",
"-optimise", "-Yclosure-elim", "-Yinline",
"-Xlog-free-types"
)
watchSources <++= baseDirectory map { path => (path / "Examples" ** "*.scala").get }
scalacOptions in console in Compile <+= (packageBin in Compile) map("-Xplugin:" + _)
scalacOptions in console in Compile += "-Xplugin-require:scalaxy-parano"
homepage := Some(url("https://github.com/nativelibs4java/scalaxy-parano"))
pomExtra := (
<scm>
<url>git@github.com:nativelibs4java/scalaxy-parano.git</url>
<connection>scm:git:git@github.com:nativelibs4java/scalaxy-parano.git</connection>
</scm>
<developers>
<developer>
<id>ochafik</id>
<name>Olivier Chafik</name>
<url>http://ochafik.com/</url>
</developer>
</developers>
)
licenses := Seq("BSD-3-Clause" -> url("http://www.opensource.org/licenses/BSD-3-Clause"))
pomIncludeRepository := { _ => false }
publishMavenStyle := true
publishTo <<= version(v => Some(
if (v.trim.endsWith("-SNAPSHOT"))
"snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
else
"releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2"))
credentials ++= (for {
username <- Option(System.getenv("SONATYPE_USERNAME"));
password <- Option(System.getenv("SONATYPE_PASSWORD"))
} yield Credentials("Sonatype Nexus Repository Manager",
"oss.sonatype.org", username, password)
).toSeq