-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.sbt
31 lines (22 loc) · 998 Bytes
/
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
import buildinfo.BuildInfo._
lazy val `sbt-web-build-base` = project in file(".")
enablePlugins(SbtWebBase)
sonatypeProfileName := "com.github.sbt.sbt-web-build-base" // See https://issues.sonatype.org/browse/OSSRH-77819#comment-1203625
description := "Base build plugin for all sbt-web plugins"
developers += Developer(
"playframework",
"The Play Framework Team",
url("https://github.com/playframework")
)
libraryDependencies += "org.scala-sbt" %% "scripted-plugin" % scriptedPluginVersion
crossSbtVersions := Seq("1.9.7")
// 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
}
addCommandAlias("validate", ";clean;test;^scripted")