forked from playframework/cachecontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
42 lines (38 loc) · 1.1 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
import Dependencies._
// 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
}
lazy val cachecontrol = (project in file("."))
.enablePlugins(Common)
.settings(
libraryDependencies ++= Seq(
parserCombinators(scalaVersion.value),
scalaTest,
slf4j,
slf4jSimple % Test
),
// On the main branch we don't check for incompatible changes,
// because it's ok to introduce breaking changes between minor version bumps
mimaPreviousArtifacts := Set.empty,
headerLicense := {
Some(
HeaderLicense.Custom(
s"Copyright (C) Lightbend Inc. <https://www.lightbend.com>"
)
)
}
)
addCommandAlias(
"validateCode",
List(
"headerCheckAll",
"scalafmtSbtCheck",
"scalafmtCheckAll",
"scalastyle",
).mkString(";")
)