-
Notifications
You must be signed in to change notification settings - Fork 24
/
build.sbt
49 lines (44 loc) · 1.46 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
ThisBuild / version := {
if ((ThisBuild / isSnapshot).value) "0.5.0" + "-SNAPSHOT"
else (ThisBuild / version).value
}
ThisBuild / scalaVersion := "2.12.15"
lazy val root = (project in file("."))
.enablePlugins(SbtPlugin)
.settings(nocomma {
name := "sbt-proguard"
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-feature",
"-Xlint",
"-Xfatal-warnings",
)
scriptedDependencies := publishLocal.value
scriptedLaunchOpts ++= Seq("-Xms512m", "-Xmx512m", s"-Dproject.version=${version.value}")
// scriptedBufferLog := false
pluginCrossBuild / sbtVersion := {
scalaBinaryVersion.value match {
case "2.12" => "1.1.6" // minimum sbt version
}
}
})
Global / onChangedBuildSource := ReloadOnSourceChanges
ThisBuild / organization := "com.github.sbt"
ThisBuild / description := "an sbt plugin for Proguard"
ThisBuild / homepage := Some(url("https://github.com/sbt/sbt-proguard"))
ThisBuild / licenses := List("Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0.txt"))
ThisBuild / developers := List(
Developer(
"pvlugter",
"Peter Vlugter",
"@pvlugter",
url("https://github.com/pvlugter")
)
)
ThisBuild / publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
ThisBuild / dynverSonatypeSnapshots := true