forked from tristanjuricek/knockoff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
61 lines (47 loc) · 1.76 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
name := "knockoff"
organization := "ws.kotonoha"
version := "0.8.2-SNAPSHOT"
scalaVersion := "2.11.8"
scalacOptions ++= (scalaVersion.value match {
case sv if sv startsWith "2.10" => Seq("-language:implicitConversions")
case _ => Nil
})
libraryDependencies += (scalaVersion.value match {
case sv if sv startsWith "2.11" => "org.scalatest" %% "scalatest" % "2.2.6" % Test
case _ => "org.scalatest" %% "scalatest" % "1.9" % "test"
})
libraryDependencies ++= Seq(
"org.scala-lang.modules" %% "scala-xml" % "1.0.5",
"org.scala-lang.modules" %% "scala-parser-combinators" % "1.0.4"
)
libraryDependencies += "com.typesafe.scala-logging" %% "scala-logging" % "3.7.2"
libraryDependencies += "com.googlecode.owasp-java-html-sanitizer" % "owasp-java-html-sanitizer" % "r136"
// Publishing setup to Sonatype's OSS hosting.
//
// We generally do not publish anything but releases for this project.
publishMavenStyle := true
// Do not publish test artifacts
publishArtifact in Test := false
pomExtra := (
<url>http://tristanjuricek.com/knockoff</url>
<licenses>
<license>
<name>BSD-style</name>
<url>https://github.com/tristanjuricek/knockoff/blob/master/license.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git://github.com/tristanjuricek/knockoff.git</url>
<connection>scm:git:[email protected]:tristanjuricek/knockoff.git</connection>
</scm>
<developers>
<developer>
<id>tristanjuricek</id>
<name>Tristan Juricek</name>
<url>http://tristanjuricek.com</url>
</developer>
</developers>)
publishTo := Some("knockoff Sonatype releases" at
"https://oss.sonatype.org/service/local/staging/deploy/maven2")
credentials += Credentials(Path.userHome / ".sbt" / "sonatype.sbt")