-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
50 lines (32 loc) · 1.65 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
import sbt.Resolver
name := "no-log4j-test"
organization := "com.evolutiongaming"
homepage := Some(url("https://github.com/evolution-gaming/no-log4j-test"))
startYear := Some(2016)
organizationName := "Evolution"
organizationHomepage := Some(url("https://evolution.com"))
scalaVersion := crossScalaVersions.value.head
crossScalaVersions := Seq("2.13.14", "2.12.19", "3.3.3")
publishTo := Some(Resolver.evolutionReleases)
Compile / doc / scalacOptions ++= Seq("-groups", "-implicits", "-no-link-warnings")
ThisBuild / versionScheme := Some("early-semver")
val slf4jVersion = "1.7.32"
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.19",
"org.slf4j" % "slf4j-api" % slf4jVersion % Test,
"org.slf4j" % "jcl-over-slf4j" % slf4jVersion % Test,
"org.slf4j" % "log4j-over-slf4j" % slf4jVersion % Test,
"log4j" % "log4j" % "1.2.17" % Log4jTest,
"org.apache.logging.log4j" % "log4j-core" % "2.15.0" % Log4jTest,
"commons-logging" % "commons-logging" % "1.2" % Log4jTest,
"org.slf4j" % "slf4j-log4j12" % slf4jVersion % Log4jTest)
licenses := Seq(("MIT", url("https://opensource.org/licenses/MIT")))
releaseCrossBuild := true
lazy val Log4jTest = config("log4j") extend Test
lazy val root = (project in file("."))
.configs(Log4jTest)
.settings(inConfig(Log4jTest)(Defaults.testSettings): _*)
addCommandAlias("testAll", "test;log4j:test")
//addCommandAlias("check", "all versionPolicyCheck Compile/doc")
addCommandAlias("check", "show version")
addCommandAlias("build", "+all compile test")