forked from etsy/sbt-checkstyle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
62 lines (51 loc) · 1.32 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
name := "sbt-checkstyle-plugin"
organization := "software.purpledragon"
enablePlugins(SbtPlugin)
libraryDependencies ++= Seq(
"com.puppycrawl.tools" % "checkstyle" % "9.3"
)
licenses += ("MIT", url("https://opensource.org/licenses/MIT"))
developers := List(
Developer(
"stringbean",
"Michael Stringer",
"@the_stringbean",
url("https://github.com/stringbean")
)
)
homepage := Some(url("https://github.com/stringbean/sbt-checkstyle-plugin"))
scmInfo := Some(
ScmInfo(
url("https://github.com/stringbean/sbt-checkstyle-plugin"),
"https://github.com/stringbean/sbt-checkstyle-plugin.git"
)
)
ThisBuild / scapegoatVersion := "2.1.2"
scriptedLaunchOpts := {
scriptedLaunchOpts.value ++
Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
}
scalacOptions := Seq(
"-deprecation",
"-feature",
"-unchecked",
"-Xlint:unused"
)
publishTo := sonatypePublishToBundle.value
import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
releaseStepInputTask(scripted),
releaseStepTask(scapegoat),
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
releaseStepCommand("sonatypeBundleRelease"),
setNextVersion,
commitNextVersion,
pushChanges
)