-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
66 lines (61 loc) · 1.96 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import Dependencies.*
ThisBuild / organization := "net.nmoncho"
addCommandAlias(
"testCoverage",
"; clean ; coverage; test; scripted; coverageAggregate; coverageReport; coverageOff"
)
addCommandAlias(
"styleFix",
"; scalafmtSbt; +scalafmtAll; +headerCreateAll; scalafixAll"
)
addCommandAlias(
"styleCheck",
"; +scalafmtCheckAll; +headerCheckAll; scalafixAll --check"
)
lazy val root = (project in file("."))
.enablePlugins(SbtPlugin)
.settings(
name := "sbt-dependency-check",
startYear := Some(2025),
homepage := Some(url("https://github.com/nMoncho/sbt-dependency-check")),
licenses := Seq("MIT License" -> new URL("http://opensource.org/licenses/MIT")),
headerLicense := Some(
HeaderLicense.MIT("2025", "the original author or authors", HeaderLicenseStyle.SpdxSyntax)
),
sonatypeCredentialHost := "s01.oss.sonatype.org",
sonatypeRepository := "https://s01.oss.sonatype.org/service/local",
developers := List(
Developer(
"nMoncho",
"Gustavo De Micheli",
"gustavo.demicheli@gmail.com",
url("https://github.com/nMoncho")
)
),
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision,
scalacOptions := (Opts.compile.encoding("UTF-8") :+
Opts.compile.deprecation :+
Opts.compile.unchecked :+
"-feature" :+
"-Ywarn-unused"),
libraryDependencies ++= Seq(
dependencyCheck,
munit % Test,
munitScalaCheck % Test,
// log4jSf4jImpl % Test,
mockito % Test
),
pluginCrossBuild / sbtVersion := {
scalaBinaryVersion.value match {
// set minimum sbt version so we have `sbtPluginPublishLegacyMavenStyle`
case "2.12" => "1.9.0"
}
},
scriptedLaunchOpts := {
scriptedLaunchOpts.value ++
Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
},
scriptedBufferLog := false,
Test / testOptions += Tests.Argument("-F") // Show full stack trace
)