/
build.sbt
85 lines (61 loc) · 1.92 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
organization := "org.rogach"
name := "scallop"
scalaVersion := "2.10.1"
scalacOptions ++= Seq(
"-deprecation",
"-unchecked",
"-feature",
"-language:postfixOps",
"-language:reflectiveCalls",
"-language:existentials",
"-language:implicitConversions",
"-Xlint",
"-Ywarn-all"
)
resolvers += "Scala Tools Snapshots" at "http://scala-tools.org/repo-snapshots/"
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "1.9.1" % "test"
)
crossScalaVersions := Seq("2.10.1")
unmanagedClasspath in Compile += file("dummy")
libraryDependencies <+= scalaVersion(sv => "org.scala-lang" % "scala-reflect" % sv)
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")
}
licenses := Seq(
"MIT License" -> url("http://www.opensource.org/licenses/mit-license.php")
)
homepage := Some(url("https://github.com/Rogach/scallop"))
scmInfo := Some(
ScmInfo(
browseUrl = url("http://github.com/Rogach/scallop"),
connection = "scm:git:git@github.com:Rogach/scallop.git"
)
)
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { x => false }
pomExtra := (
<developers>
<developer>
<id>rogach</id>
<name>Platon Pronko</name>
<url>http://rogach.org</url>
</developer>
</developers>
)
scalacOptions in (Compile, doc) ++= Opts.doc.sourceUrl("https://github.com/Rogach/scallop/tree/master/€{FILE_PATH}.scala")
parallelExecution in Test := false
site.settings
site.includeScaladoc("")
ghpages.settings
git.remoteRepo := "git@github.com:Rogach/scallop.git"
// fix for paths to source files in scaladoc
doc in Compile <<= (doc in Compile) map { in =>
Seq("bash","-c",""" for x in $(find target/scala-2.10/api/ -type f); do sed -i "s_`pwd`/__" $x; done """).!
in
}