-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
103 lines (89 loc) · 2.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import org.scalafmt.sbt.ScalafmtPlugin
// General info
val username = "RustedBones"
val repo = "taxonomy"
val githubUrl = s"https://github.com/$username/$repo"
ThisBuild / tlBaseVersion := "1.2"
ThisBuild / tlVersionIntroduced := Map("3" -> "1.1.0")
ThisBuild / organization := "fr.davit"
ThisBuild / organizationName := "Michel Davit"
ThisBuild / startYear := Some(2020)
ThisBuild / licenses := Seq(License.Apache2)
ThisBuild / homepage := Some(url(githubUrl))
ThisBuild / scmInfo := Some(ScmInfo(url(githubUrl), s"[email protected]:$username/$repo.git"))
ThisBuild / developers := List(
Developer(
id = s"$username",
name = "Michel Davit",
email = "[email protected]",
url = url(s"https://github.com/$username")
)
)
// scala versions
val scala3 = "3.3.1"
val defaultScala = scala3
// github actions
val java17 = JavaSpec.temurin("17")
val java11 = JavaSpec.temurin("11")
val defaultJava = java17
ThisBuild / scalaVersion := defaultScala
ThisBuild / githubWorkflowTargetBranches := Seq("main")
ThisBuild / githubWorkflowJavaVersions := Seq(java17, java11)
// build
ThisBuild / tlFatalWarnings := true
ThisBuild / tlJdkRelease := Some(8)
ThisBuild / tlSonatypeUseLegacyHost := true
// mima
ThisBuild / mimaBinaryIssueFilters ++= Seq()
lazy val commonSettings = Seq(
testFrameworks += new TestFramework("munit.Framework")
)
lazy val noPublishSettings = Seq(
publish / skip := true,
mimaPreviousArtifacts := Set.empty
)
lazy val `taxonomy` = project
.in(file("."))
.settings(commonSettings)
.settings(noPublishSettings)
.aggregate(
`taxonomy-model`,
`taxonomy-scodec`,
`taxonomy-fs2`,
integration
)
lazy val `taxonomy-model` = project
.in(file("model"))
.settings(commonSettings)
lazy val `taxonomy-scodec` = project
.in(file("scodec"))
.dependsOn(`taxonomy-model`)
.settings(commonSettings)
.settings(
libraryDependencies ++= Seq(
Dependencies.ScodecCore,
Dependencies.Test.MUnitCE3
)
)
lazy val `taxonomy-fs2` = project
.in(file("fs2"))
.dependsOn(`taxonomy-scodec`)
.settings(commonSettings)
.settings(
libraryDependencies ++= Seq(
Dependencies.FS2Core,
Dependencies.FS2IO,
Dependencies.FS2Scodec,
Dependencies.Test.MUnitCE3
)
)
lazy val integration = project
.in(file("integration"))
.dependsOn(`taxonomy-fs2`)
.settings(commonSettings)
.settings(noPublishSettings)
.settings(
libraryDependencies ++= Seq(
Dependencies.Test.MUnitCE3
)
)