-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
49 lines (40 loc) · 1.58 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
/*
* Copyright (C) 2018-2022 Felipe Bonezi.
* See the LICENCE.txt file distributed with this work for additional
* information regarding copyright ownership.
*/
import com.typesafe.config.Config
import com.typesafe.config.ConfigFactory
lazy val conf: Config = ConfigFactory.parseFile(new File("conf/reference.conf"))
maintainer := conf.getString("play.app.maintainer")
lazy val root = (project in file("."))
.enablePlugins(PlayJava, PlayEbean)
.enablePlugins(PlayGround, Dependencies, Common)
.enablePlugins(DockerPlugin, AshScriptPlugin)
Compile / doc / sources := Seq.empty
routesGenerator := InjectedRoutesGenerator
scalaVersion := "2.13.8"
versionScheme := Some("semver-spec")
sonatypeCredentialHost := "s01.oss.sonatype.org"
sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
addCommandAlias(
"validateCode",
List(
"headerCheckAll",
"scalafmtSbtCheck",
"scalafmtCheckAll",
"test:scalafmtCheckAll",
"scalastyle",
"test:scalastyle"
).mkString(";")
)
// Checkstyle config.
checkstyleSeverityLevel := Some(CheckstyleSeverityLevel.Info)
checkstyleConfigLocation := CheckstyleConfigLocation.File("conf/checkstyle/checkstyle-config.xml")
//(checkstyle in Compile) := (checkstyle in Compile).triggeredBy(compile in Compile).value
//(checkstyle in Test) := (checkstyle in Test).triggeredBy(compile in Test).value
// Scalastyle Configuration
import java.io.File
scalastyleFailOnError := true
scalastyleTarget := new File("target/scalastyle-report/scalastyle-result.xml")
Test / scalastyleTarget := new File("target/scalastyle-report/scalastyle-test-result.xml")