-
Notifications
You must be signed in to change notification settings - Fork 39
/
build.sbt
executable file
·37 lines (29 loc) · 1.31 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
lazy val `sbt-less` = project in file(".")
enablePlugins(SbtWebBase)
sonatypeProfileName := "com.github.sbt.sbt-less" // See https://issues.sonatype.org/browse/OSSRH-77819#comment-1203625
description := "sbt-web less plugin"
developers += Developer(
"playframework",
"The Play Framework Team",
url("https://github.com/playframework")
)
addSbtJsEngine("1.3.9")
addSbtWeb("1.5.8")
libraryDependencies ++= Seq(
"org.webjars.npm" % "node-require-fallback" % "1.0.0",
"org.webjars.npm" % "less" % "4.2.0", // sync with src/main/resources/lessc.js
"org.webjars.npm" % "clone" % "2.1.2",
"org.webjars.npm" % "mkdirp" % "0.5.6", // sync with src/main/resources/lessc.js
"org.webjars.npm" % "clean-css" % "5.3.3",
"org.webjars.npm" % "less-plugin-clean-css" % "1.5.1" intransitive(), // sync with src/main/resources/lessc.js
"org.webjars.npm" % "es6-promise" % "4.2.8", // sync with src/main/resources/lessc.js
)
// Customise sbt-dynver's behaviour to make it work with tags which aren't v-prefixed
ThisBuild / dynverVTagPrefix := false
// Sanity-check: assert that version comes from a tag (e.g. not a too-shallow clone)
// https://github.com/dwijnand/sbt-dynver/#sanity-checking-the-version
Global / onLoad := (Global / onLoad).value.andThen { s =>
dynverAssertTagVersion.value
s
}