forked from xerial/sbt-pack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
41 lines (33 loc) · 1.25 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
Global / onChangedBuildSource := ReloadOnSourceChanges
enablePlugins(SbtTwirl)
enablePlugins(SbtPlugin)
organization := "org.xerial.sbt"
organizationName := "Xerial project"
name := "sbt-pack"
organizationHomepage := Some(new URL("http://xerial.org/"))
description := "A sbt plugin for packaging distributable Scala code"
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ =>
false
}
ThisBuild / scalaVersion := "2.12.14"
parallelExecution := true
crossPaths := false
scalacOptions ++= Seq("-encoding", "UTF-8", "-deprecation", "-unchecked")
scriptedBufferLog := false
scriptedLaunchOpts ++= {
import scala.collection.JavaConverters._
management.ManagementFactory
.getRuntimeMXBean()
.getInputArguments().asScala
.filter(a => Seq("-Xmx", "-Xms").contains(a) || a.startsWith("-XX")).toSeq ++
Seq("-Dplugin.version=" + version.value)
}
libraryDependencies ++= Seq(
"org.slf4j" % "slf4j-simple" % "1.7.36",
"org.apache.commons" % "commons-compress" % "1.21",
"org.scalatra.scalate" %% "scalate-core" % "1.9.8",
"org.tukaani" % "xz" % "1.9",
"org.specs2" %% "specs2-core" % "4.8.2" % "test"
)