This repository has been archived by the owner on Mar 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
73 lines (65 loc) · 1.85 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
67
68
69
70
71
72
73
import Dependencies._
import ReleaseTransformations._
import sbtrelease.Version
addCommandAlias("fix", "all compile:scalafix test:scalafix")
addCommandAlias("fixCheck", "; compile:scalafix --check ; test:scalafix --check")
lazy val compileSettings = Seq(
Compile / compile := (Compile / compile)
.dependsOn(
Compile / scalafmtSbt,
Compile / scalafmtAll
)
.value,
scalaVersion := Versions.Scala
) ++ CompilerPlugins.compilerPlugins
lazy val dependenciesSettings = Seq(
libraryDependencies ++= prodDeps ++ testDeps,
ThisBuild / scalafixDependencies ++= scalafixDeps
)
lazy val coverageSettings = Seq(
coverageFailOnMinimum := true,
coverageMinimum := 80
)
lazy val publishSettings = Seq(
licenses += ("MIT", url("https://opensource.org/licenses/MIT")),
Test / publishArtifact := false,
developers := List(
Developer(
"francescopellegrini",
"Francesco Pellegrini",
url("https://github.com/francescopellegrini")
)
)
)
lazy val releaseSettings = Seq(
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
setNextVersion,
commitNextVersion,
pushChanges
),
releaseVersionBump := Version.Bump.Minor
)
lazy val testSettings = Seq(
Test / logBuffered := false,
Test / parallelExecution := false
)
lazy val root = (project in file("."))
.settings(
name := "logback-capturing-appender",
organization := "com.github.francescopellegrini",
homepage := Some(url("https://github.com/francescopellegrini/logback-capturing-appender"))
)
.settings(compileSettings: _*)
.settings(dependenciesSettings: _*)
.settings(coverageSettings: _*)
.settings(publishSettings: _*)
.settings(releaseSettings: _*)
.settings(testSettings: _*)