forked from scalastyle/scalastyle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
85 lines (57 loc) · 2.18 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
import AssemblyKeys._
name := "scalastyle"
organization := "org.scalastyle"
versionWithGit
git.baseVersion := "0.5.0"
scalaVersion := "2.10.4"
scalacOptions ++= Seq("-deprecation")
crossScalaVersions := Seq("2.9.3")
description := "Scalastyle style checker for Scala"
def scalatestDependency(scalaVersion: String) = scalaVersion match {
case "2.9.3" => "org.scalatest" % "scalatest_2.9.3" % "2.0.M5b" % "test"
case _ => "org.scalatest" % "scalatest_2.10" % "2.0.M6-SNAP9" % "test"
}
libraryDependencies ++= Seq(
"org.scalariform" %% "scalariform" % "0.1.4",
"com.typesafe" % "config" % "1.2.0",
"junit" % "junit" % "4.11" % "test",
"com.novocode" % "junit-interface" % "0.10" % "test")
libraryDependencies <+= scalaVersion(scalatestDependency(_))
fork in Test := true
javaOptions in Test += "-Dfile.encoding=UTF-8"
publishMavenStyle := true
seq(bintrayPublishSettings:_*)
bintray.Keys.repository in bintray.Keys.bintray := "scalastyle"
bintray.Keys.bintrayOrganization in bintray.Keys.bintray := Some("scalastyle")
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0.html"))
pomIncludeRepository := { _ => false }
pomExtra := (
<url>http://www.scalastyle.org</url>
<licenses>
<license>
<name>Apache 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>scm:git:[email protected]:scalastyle/scalastyle.git</url>
<connection>scm:git:[email protected]:scalastyle/scalastyle.git</connection>
</scm>
<developers>
<developer>
<id>matthewfarwell</id>
<name>Matthew Farwell</name>
<url>http://www.farwell.co.uk</url>
</developer>
</developers>)
assemblySettings
artifact in (Compile, assembly) ~= { art =>
art.copy(`classifier` = Some("assembly"))
}
addArtifact(artifact in (Compile, assembly), assembly)
mainClass in assembly := Some("org.scalastyle.Main")
buildInfoSettings
sourceGenerators in Compile <+= buildInfo
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion)
buildInfoPackage := "org.scalastyle"