This repository has been archived by the owner on May 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
/
build.sbt
68 lines (55 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
66
67
68
name := "chalk"
version := "1.3.3-SNAPSHOT"
organization := "org.scalanlp"
scalaVersion := "2.10.4"
crossScalaVersions := Seq("2.11.2", "2.10.4")
scalacOptions := Seq("-feature", "-deprecation")
resolvers ++= Seq(
"sonatype snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
"sonatype releases" at "https://oss.sonatype.org/content/repositories/releases"
)
libraryDependencies ++= Seq(
"org.scalanlp" %% "nak" % "1.3",
"com.typesafe.akka" %% "akka-actor" % "2.3.6" % "provided",
"com.typesafe.akka" %% "akka-agent" % "2.3.6" % "provided",
"org.scalacheck" %% "scalacheck" % "1.11.6" % "test",
"org.scalatest" %% "scalatest" % "2.2.2" % "test"
)
libraryDependencies <++= (scalaBinaryVersion).apply{ sv => sv match{
case "2.11" => Seq(
"org.scala-lang.modules" %% "scala-xml" % "1.0.2",
"org.scala-lang.modules" %% "scala-parser-combinators" % "1.0.2"
)
case _ => Nil
}}
publishTo <<= version { v: String =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := (
<url>http://scalanlp.org/</url>
<licenses>
<license>
<name>Apache License 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:scalanlp/chalk.git</url>
<connection>scm:git:[email protected]:scalanlp/chalk.git</connection>
</scm>
<developers>
<developer>
<id>jasonbaldridge</id>
<name>Jason Baldridge</name>
<url>http://www.jasonbaldridge.com</url>
</developer>
</developers>
)