-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.sbt
87 lines (65 loc) · 2.58 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import scala.xml._
name := "scala-inflector"
version := "1.3.6"
organization := "io.backchat.inflector"
scalaVersion := "2.12.4"
crossScalaVersions := Seq("2.11.11", "2.12.4")
crossVersion := CrossVersion.binary
scalacOptions ++= Seq("-feature", "-unchecked", "-deprecation", "-Xcheckinit", "-encoding", "utf8")
scalacOptions := scalacOptions.value :+ Option(scalaVersion.value).filter(_.startsWith("2.12"))
.map(v => "-opt:l:method")
.getOrElse("-optimize")
libraryDependencies <+= (scalaVersion) {
case v if v.startsWith("2.12") => "org.specs2" %% "specs2-core" % "3.9.5" % "test"
case _ => "org.specs2" %% "specs2" % "2.3.11" % "test"
}
libraryDependencies ++= Seq(
// compilerPlugin("org.scala-tools.sxr" % "sxr_2.9.0" % "0.2.7"),
"junit" % "junit" % "4.10" % "test"
)
autoCompilerPlugins := true
parallelExecution in Test := false
homepage := Some(url("https://github.com/backchatio/scala-inflector"))
startYear := Some(2010)
licenses := Seq(("MIT", url("http://github.com/backchatio/scala-inflector/raw/HEAD/LICENSE")))
pomExtra <<= (pomExtra, name, description) {(pom, name, desc) => pom ++ Group(
<scm>
<connection>scm:git:git://github.com/backchatio/scala-inflector.git</connection>
<developerConnection>scm:git:[email protected]:backchatio/scala-inflector.git</developerConnection>
<url>https://github.com/backchatio/scala-inflector</url>
</scm>
<developers>
<developer>
<id>casualjim</id>
<name>Ivan Porto Carrero</name>
<url>http://flanders.co.nz/</url>
</developer>
</developers>
)}
packageOptions <+= (name, version, organization) map {
(title, version, vendor) =>
Package.ManifestAttributes(
"Created-By" -> "Simple Build Tool",
"Built-By" -> System.getProperty("user.name"),
"Build-Jdk" -> System.getProperty("java.version"),
"Specification-Title" -> title,
"Specification-Version" -> version,
"Specification-Vendor" -> vendor,
"Implementation-Title" -> title,
"Implementation-Version" -> version,
"Implementation-Vendor-Id" -> vendor,
"Implementation-Vendor" -> vendor
)
}
publishMavenStyle := true
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")
}
publishArtifact in Test := false
pomIncludeRepository := { x => false }
resolvers += "Sonatype snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
exportJars := true