-
Notifications
You must be signed in to change notification settings - Fork 17
/
build.sbt
64 lines (52 loc) · 1.57 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
name:="knockoff"
version:="0.8.3"
scalaVersion:="2.10.4"
crossScalaVersions := Seq("2.10.4", "2.11.4")
organization := "com.tristanhunt"
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "2.2.2" % "test",
"junit" % "junit" % "4.11" % "test",
"net.sf.jtidy" % "jtidy" % "r938" % "test"
)
libraryDependencies := {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, scalaMajor)) if scalaMajor >= 11 =>
libraryDependencies.value ++ Seq(
"org.scala-lang.modules" %% "scala-xml" % "1.0.1",
"org.scala-lang.modules" %% "scala-parser-combinators" % "1.0.1"
)
case _ =>
libraryDependencies.value
}
}
useGpg := true
publishMavenStyle := true
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := (
<url>http://tristanjuricek.com/projects/knockoff</url>
<licenses>
<license>
<name>BSD-style</name>
<url>http://www.opensource.org/licenses/bsd-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:tristanjuricek/knockoff.git</url>
<connection>scm:git:[email protected]:tristanjuricek/knockoff.git</connection>
</scm>
<developers>
<developer>
<id>tjuricek</id>
<name>Tristan Juricek</name>
<url>http://tristanjuricek.com</url>
</developer>
</developers>)