forked from scalastyle/scalastyle
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
82 lines (56 loc) · 2.03 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
import AssemblyKeys._
name := "scalastyle"
organization := "jp.co.dwango"
versionWithGit
git.baseVersion := "0.5.0"
scalaVersion := "2.11.1"
crossScalaVersions := Seq("2.11.1", "2.10.3", "2.10.2")
scalacOptions := Seq("-deprecation")
version := "0.3.3"
description := "Scalastyle style checker for Scala"
resolvers += "sonatype-releases" at "https://oss.sonatype.org/content/repositories/releases/"
libraryDependencies ++= Seq(
"com.danieltrinh" %% "scalariform" % "0.1.5",
"com.typesafe" % "config" % "1.2.0",
"junit" % "junit" % "4.11" % "test",
"org.scalatest" %% "scalatest" % "2.2.0" % "test",
"com.novocode" % "junit-interface" % "0.10" % "test",
"org.reflections" % "reflections" % "0.9.9-RC2" % "test" exclude("org.javassist", "javassist") exclude("com.google.guava", "guava"),
"org.slf4j" % "slf4j-simple" % "1.7.7" % "test",
"com.google.guava" % "guava" % "15.0" % "test",
"org.javassist" % "javassist" % "3.18.2-GA" % "test"
)
fork in Test := true
javaOptions in Test += "-Dfile.encoding=UTF-8"
publishMavenStyle := true
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0.html"))
pomIncludeRepository := { _ => false }
pomExtra :=
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</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"