-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
61 lines (38 loc) · 2.35 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
import AssemblyKeys._ // put this at the top of the file
name := "ontoner"
organization := "edu.umass.cs.iesl"
version := "0.1-SNAPSHOT"
scalaVersion := "2.9.1"
libraryDependencies += "org.scalatest" %% "scalatest" % "1.6.1" % "test"
libraryDependencies += "edu.umass.cs.iesl" %% "scalacommons" % "0.1-SNAPSHOT" changing()
libraryDependencies += "cc.factorie" % "factorie" % "1.0-SNAPSHOT" changing()
resolvers += "IESL Repo" at "https://dev-iesl.cs.umass.edu/nexus/content/repositories/releases"
resolvers += "IESL ThirdParty Repo" at "https://dev-iesl.cs.umass.edu/nexus/content/repositories/thirdparty"
resolvers += "IESL Snapshot Repo" at "https://dev-iesl.cs.umass.edu/nexus/content/repositories/snapshots"
resolvers += "David Soergel Repo" at "http://dev.davidsoergel.com/nexus/content/groups/public/"
resolvers += "David Soergel Snapshot Repo" at "http://dev.davidsoergel.com/nexus/content/repositories/snapshots"
resolvers += "Typesafe Repo" at "http://repo.typesafe.com/typesafe/releases/"
seq(assemblySettings: _*)
fork in run := true
fork in runMain := true
javaOptions in run += "-Xmx8G"
javaOptions in runMain += "-Xmx8G"
publishTo <<= (version)
{version: String =>
{
def repo(name: String) = name at "https://dev-iesl.cs.umass.edu/nexus/content/repositories/" + name
val isSnapshot = version.trim.endsWith("SNAPSHOT")
val repoName = if (isSnapshot) "snapshots" else "releases"
Some(repo(repoName))
}
}
credentials +=
{
Seq("build.publish.user", "build.publish.password").map(k => Option(System.getProperty(k))) match
{
case Seq(Some(user), Some(pass)) =>
Credentials("Sonatype Nexus Repository Manager", "dev-iesl.cs.umass.edu", user, pass)
case _ =>
Credentials(Path.userHome / ".ivy2" / ".credentials")
}
}