-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
65 lines (48 loc) · 1.81 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
name := "scalaxy-evidence"
organization := "com.nativelibs4java"
version := "0.4-SNAPSHOT"
scalaVersion := "2.11.6"
resolvers += Resolver.defaultLocal
resolvers += Resolver.sonatypeRepo("snapshots")
fork in Test := true
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" % "test",
"javax.persistence" % "persistence-api" % "1.0.2" % "test"
)
scalacOptions ++= Seq(
"-encoding", "UTF-8",
"-deprecation", "-feature", "-unchecked",
"-optimise", "-Yclosure-elim", "-Yinline",
"-Xlog-free-types"
)
homepage := Some(url("https://github.com/nativelibs4java/scalaxy-evidence"))
pomExtra := (
<scm>
<url>[email protected]:nativelibs4java/scalaxy-evidence.git</url>
<connection>scm:git:[email protected]:nativelibs4java/scalaxy-evidence.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