-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.sbt
53 lines (44 loc) · 1.72 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
import sbt.Keys._
import play.sbt.routes.RoutesKeys
RoutesKeys.routesImport := Seq.empty
scalaVersion := "2.12.6"
libraryDependencies += "com.softwaremill.macwire" %% "macros" % "2.3.0" % "provided"
libraryDependencies += "com.googlecode.htmlcompressor" % "htmlcompressor" % "1.5.2"
// for public assets
libraryDependencies += "org.webjars" % "bootstrap" % "4.1.0"
dependencyOverrides ++= Seq(
"com.google.code.findbugs" % "jsr305" % "3.0.2",
"org.apache.commons" % "commons-lang3" % "3.6",
"com.google.guava" % "guava" % "23.0",
"org.codehaus.plexus" % "plexus-utils" % "3.0.17",
"org.webjars" % "webjars-locator-core" % "0.33"
)
// The Play project itself
lazy val toc = (project in file("."))
.enablePlugins(Common, PlayScala,PlayNettyServer,SbtWeb)
.disablePlugins(PlayAkkaHttpServer)
.settings(conflictManager := ConflictManager.strict)
.settings(
scalacOptions := {
val orig = scalacOptions.value
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 12)) => orig.map {
case "-Xlint" => "-Xlint:-unused,_"
case "-Ywarn-unused-import" => "-Ywarn-unused:imports,-patvars,-privates,-locals,-params,-implicits"
case other => other
}
case _ => orig
}
}
)
pipelineStages := Seq(digest, gzip)
enablePlugins(JavaAppPackaging)
version := "0.12.20190317"
dockerRepository := Option("raychenon")
organization := "raychenon"
packageName := "play-table-of-contents"
dockerUpdateLatest := true
maintainer in Docker := "Raymond Chenon"
packageSummary in Docker := "table of contents"
packageDescription := "An online markdown table of contents generator"
packageName in Docker := "play-table-of-contents"