forked from irundaia/sbt-sassify
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
71 lines (61 loc) · 1.91 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
lazy val sbtSassify = project
.in(file("."))
.enablePlugins(AutomateHeaderPlugin)
.enablePlugins(ScriptedPlugin)
name := "sbt-sassify"
organization := "org.irundaia.sbt"
organizationName := "Han van Venrooij"
startYear := Some(2018)
sbtPlugin := true
fork in Test := false
javaOptions += "-Djna.nosys=true"
addSbtPlugin("com.typesafe.sbt" % "sbt-web" % "1.4.4")
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.11" % "test",
"org.scalatest" %% "scalatest-mustmatchers" % "3.2.11" % "test",
"org.scalatest" %% "scalatest-funspec" % "3.2.11" % "test",
"net.java.dev.jna" % "jna" % "5.10.0"
)
// Compiler settings
crossSbtVersions := Seq("1.1.1", "0.13.16")
sourcesInBase := false
crossPaths := false
scalacOptions ++= Seq(
"-unchecked",
"-Xlint",
"-deprecation",
"-feature",
"-encoding",
"UTF-8"
)
javacOptions ++= Seq("-source", "1.8", "-target", "1.8", "-Xlint")
// Bintray settings
bintrayOrganization in bintray := None
bintrayPackageLabels := Seq("sbt", "sbt-plugin", "sbt-sassify")
bintrayRepository := "sbt-plugins"
bintrayReleaseOnPublish in ThisBuild := false
publishMavenStyle := false
licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html"))
// Scalastyle settings
lazy val testScalastyle = taskKey[Unit]("testScalastyle")
testScalastyle := scalastyle.in(Compile).toTask("").value
scalastyleFailOnError := true
// Scripted settings
scriptedBufferLog := false
scriptedLaunchOpts += "-Dplugin.version=" + version.value
import ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
releaseStepCommandAndRemaining("test"),
releaseStepCommandAndRemaining("scripted"),
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
releaseStepCommandAndRemaining("^ publish"),
releaseStepCommandAndRemaining("bintrayRelease"),
setNextVersion,
commitNextVersion,
pushChanges)