-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
74 lines (54 loc) · 2.04 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-records"
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 <+= version("com.nativelibs4java" %% "scalaxy-reified" % _)
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"
)
scalacOptions ++= Seq(
"-optimise", "-Yclosure-elim", "-Yinline"
)
javaOptions ++= Seq("-Xms4G", "-Xmx4G")
// javaOptions ++= Seq("-Xms1g", "-Xmx1g")
homepage := Some(url("https://github.com/nativelibs4java/scalaxy-records"))
pomExtra := (
<scm>
<url>git@github.com:nativelibs4java/scalaxy-records.git</url>
<connection>scm:git:git@github.com:nativelibs4java/scalaxy-records.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