-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
83 lines (76 loc) · 2.23 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
ThisBuild / organization := "io.cardell"
ThisBuild / name := "abac4s"
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/alexcardell/abac4s"),
"scm:[email protected]:alexcardell/abac4s.git"
)
)
ThisBuild / licenses := List(
"Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
)
ThisBuild / developers := List(
Developer(
"alexcardell",
"Alex Cardell",
url("https://github.com/alexcardell")
)
)
ThisBuild / homepage := Some(
url("https://github.com/alexcardell/abac4s")
)
ThisBuild / publishTo := sonatypePublishToBundle.value
ThisBuild / sonatypeCredentialHost := "s01.oss.sonatype.org"
ThisBuild / versionScheme := Some("early-semver")
lazy val scala2_12 = "2.12.15"
lazy val scala2_13 = "2.13.8"
lazy val scala3_1 = "3.1.3"
lazy val scala3_2 = "3.2.0"
lazy val crossVersions = Seq(scala2_13)
ThisBuild / crossScalaVersions := crossVersions
ThisBuild / scalaVersion := scala2_13
ThisBuild / scalafixDependencies += "com.github.liancheng" %% "organize-imports" % "0.6.0"
ThisBuild / semanticdbEnabled := true
ThisBuild / semanticdbVersion := scalafixSemanticdb.revision
lazy val commonSettings = Seq(
addCompilerPlugin(
"org.typelevel" % "kind-projector" % "0.13.2" cross CrossVersion.full
),
scalacOptions := Seq("-Wunused")
)
lazy val root = crossProject(JVMPlatform, JSPlatform, NativePlatform)
.crossType(CrossType.Pure)
.in(file("."))
.aggregate(core)
.settings(
name := "abac4s"
)
lazy val deps = Seq(
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % "2.7.0",
"com.disneystreaming" %%% "weaver-cats" % "0.8.0" % Test
)
)
lazy val core = crossProject(JVMPlatform, JSPlatform, NativePlatform)
.crossType(CrossType.Pure)
.in(file("core"))
.settings(commonSettings)
.settings(deps: _*)
.settings(
moduleName := "abac4s-core",
testFrameworks += new TestFramework("weaver.framework.CatsEffect")
)
lazy val docs = project
.in(file("mdoc-src"))
.dependsOn(core.jvm)
.settings(
libraryDependencies += "org.typelevel" %%% "cats-effect" % "3.3.14"
)
.settings(
moduleName := "abac4s-docs",
mdocVariables := Map(
"VERSION" -> version.value
)
)
.enablePlugins(MdocPlugin)