-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
61 lines (51 loc) · 1.47 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 := "spdf"
organization := "com.github.philcali"
version := "0.1.0"
//resolvers += "Local Maven" at Path.userHome.asFile.toURI.toURL + ".m2/repository"
libraryDependencies ++= Seq(
"org.ccil.cowan.tagsoup" % "tagsoup" % "1.2.1",
"org.xhtmlrenderer" % "flying-saucer-pdf" % "9.0.1"
)
libraryDependencies <+= (sbtVersion) { v =>
v.split('.').toList match {
case "0" :: "11" :: "3" :: Nil =>
"org.scala-sbt" %%
"launcher-interface" %
v % "provided"
case _ =>
"org.scala-sbt" %
"launcher-interface" %
v % "provided"
}
}
publishTo <<= version { v =>
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 := { x => false }
pomExtra := (
<url>https://github.com/philcali/spdf</url>
<licenses>
<license>
<name>The AGPL License</name>
<url>http://itextpdf.com/terms-of-use/agpl.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:philcali/spdf.git</url>
<connection>scm:git:git@github.com:philcali/spdf.git</connection>
</scm>
<developers>
<developer>
<id>philcali</id>
<name>Philip Cali</name>
<url>http://philcalicode.blogspot.com/</url>
</developer>
</developers>
)