-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
55 lines (46 loc) · 1.46 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
import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}
addCommandAlias(
"gitSnapshots",
";set version in ThisBuild := git.gitDescribedVersion.value.get + \"-SNAPSHOT\""
)
val apache2 = "Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0.html")
val gh = GitHubSettings(
org = "kailuowang",
proj = "mau",
publishOrg = "com.kailuowang",
license = apache2
)
val mainDev =
Developer(
"Kai(luo) Wang",
"@kailuowang",
new java.net.URL("http://github.com/kailuowang")
)
lazy val libs = org.typelevel.libraries.add("cats-effect", "3.5.2")
lazy val mau = project
.in(file("."))
.settings(
name := "mau",
rootSettings,
libs.dependencies("cats-effect"),
libs.testDependencies("scalatest"),
libs.testDependencies("cats-effect-testing-scalatest"),
Test / scalacOptions --= Seq("-Xlint:-unused,_", "-Ywarn-unused:imports")
)
lazy val buildSettings = sharedBuildSettings(gh, libs)
lazy val commonSettings = sharedCommonSettings ++ Seq(
organization := "com.kailuowang",
Test / parallelExecution := false,
scalaVersion := libs.vers("scalac_2.13"),
crossScalaVersions := Seq(
scalaVersion.value,
libs.vers("scalac_2.12"),
"3.2.0"
),
developers := List(mainDev)
)
lazy val publishSettings = sharedPublishSettings(gh) ++ credentialSettings ++ sharedReleaseProcess ++ Seq(
releaseCrossBuild := true
)
lazy val rootSettings = buildSettings ++ commonSettings ++ publishSettings