mirror of https://github.com/sbt/sbt.git
Build standalone launcher from SBT
This commit is contained in:
parent
2224714bc8
commit
fc237d61ad
11
build.sbt
11
build.sbt
|
|
@ -219,6 +219,7 @@ lazy val cli = project
|
|||
.settings(commonSettings)
|
||||
.settings(noPublish210Settings)
|
||||
.settings(packAutoSettings)
|
||||
.settings(proguardSettings)
|
||||
.settings(
|
||||
name := "coursier-cli",
|
||||
libraryDependencies ++= {
|
||||
|
|
@ -229,7 +230,15 @@ lazy val cli = project
|
|||
},
|
||||
resourceGenerators in Compile += packageBin.in(bootstrap).in(Compile).map { jar =>
|
||||
Seq(jar)
|
||||
}.taskValue
|
||||
}.taskValue,
|
||||
ProguardKeys.proguardVersion in Proguard := "5.2.1",
|
||||
ProguardKeys.options in Proguard ++= Seq(
|
||||
"-dontwarn",
|
||||
"-keep class coursier.cli.Coursier {\n public static void main(java.lang.String[]);\n}",
|
||||
"-keep class coursier.cli.IsolatedClassLoader {\n public java.lang.String[] getIsolationTargets();\n}"
|
||||
),
|
||||
javaOptions in (Proguard, ProguardKeys.proguard) := Seq("-Xmx3172M"),
|
||||
artifactPath in Proguard := (ProguardKeys.proguardDirectory in Proguard).value / "coursier-standalone.jar"
|
||||
)
|
||||
|
||||
lazy val web = project
|
||||
|
|
|
|||
|
|
@ -4,3 +4,4 @@ addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")
|
|||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.1.0")
|
||||
addSbtPlugin("org.tpolecat" % "tut-plugin" % "0.4.0")
|
||||
addSbtPlugin("com.github.alexarchambault" % "coursier-sbt-plugin" % "1.0.0-M4")
|
||||
addSbtPlugin("com.typesafe.sbt" % "sbt-proguard" % "0.2.2")
|
||||
|
|
|
|||
Loading…
Reference in New Issue