-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
46 lines (37 loc) · 1.35 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
name := "digest4s"
ThisBuild / tlBaseVersion := "1.0"
Sonatype.SonatypeKeys.sonatypeProfileName := "au.id.tmm"
ThisBuild / organization := "au.id.tmm.digest4s"
ThisBuild / organizationName := "Timothy McCarthy"
ThisBuild / startYear := Some(2020)
ThisBuild / licenses := Seq(License.Apache2)
ThisBuild / developers := List(
// your GitHub handle and name
tlGitHubDev("tmccarthy", "Timothy McCarthy"),
)
val Scala213 = "2.13.8"
ThisBuild / scalaVersion := Scala213
ThisBuild / crossScalaVersions := Seq(Scala213, "3.1.1")
ThisBuild / githubWorkflowJavaVersions := List(
JavaSpec.temurin("17"),
JavaSpec.temurin("11"),
JavaSpec.temurin("8"),
)
ThisBuild / tlCiHeaderCheck := false
ThisBuild / tlCiScalafmtCheck := true
ThisBuild / tlCiMimaBinaryIssueCheck := false
ThisBuild / tlFatalWarnings := true
val mUnitVersion = "0.7.27"
lazy val root = tlCrossRootProject.aggregate(core)
lazy val core = project
.in(file("core"))
.settings(name := "digest4s-core")
.settings(
libraryDependencies += "commons-codec" % "commons-codec" % "1.15",
)
.settings(
testFrameworks += new TestFramework("munit.Framework"),
libraryDependencies += "org.scalameta" %% "munit" % mUnitVersion % Test,
)
addCommandAlias("check", ";githubWorkflowCheck;scalafmtSbtCheck;+scalafmtCheckAll;+test")
addCommandAlias("fix", ";githubWorkflowGenerate;+scalafmtSbt;+scalafmtAll")