-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
97 lines (87 loc) · 2.96 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
ThisBuild / organization := "io.github.marcinzh"
ThisBuild / version := "0.2.0"
ThisBuild / scalaVersion := "3.3.1"
ThisBuild / crossScalaVersions := Seq(scalaVersion.value)
ThisBuild / watchBeforeCommand := Watch.clearScreen
ThisBuild / watchTriggeredMessage := Watch.clearScreenOnTrigger
ThisBuild / watchForceTriggerOnAnyChange := true
ThisBuild / scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-unchecked",
"-Wnonunit-statement",
"-Xfatal-warnings",
"-Ykind-projector:underscores",
Seq(
"java.lang",
"scala",
"scala.Predef",
"scala.util.chaining",
).mkString("-Yimports:", ",", "")
)
val Deps = {
val jsonitter_v = "2.23.2"
object deps {
val specs2_core = "org.specs2" %% "specs2-core" % "5.2.0" % "test"
val turbolift = "io.github.marcinzh" %% "turbolift-core" % "0.58.1"
val betterFiles = ("com.github.pathikrit" %% "better-files" % "3.9.1").cross(CrossVersion.for3Use2_13)
val undertow = "io.undertow" % "undertow-core" % "2.2.20.Final"
val jsoniter_core ="com.github.plokhotnyuk.jsoniter-scala" %% "jsoniter-scala-core" % jsonitter_v
val jsoniter_macros ="com.github.plokhotnyuk.jsoniter-scala" %% "jsoniter-scala-macros" % jsonitter_v
}
deps
}
lazy val root = project
.in(file("."))
.settings(sourcesInBase := false)
.settings(dontPublishMe: _*)
.aggregate(core, examples)
lazy val core = project
.in(file("modules/core"))
.settings(name := "enterprise-core")
.settings(testSettings: _*)
.settings(libraryDependencies ++= Seq(
Deps.turbolift,
Deps.undertow,
Deps.jsoniter_core,
Deps.jsoniter_macros,
))
lazy val examples = project
.in(file("modules/examples"))
.settings(name := "enterprise-examples")
.settings(dontPublishMe: _*)
.dependsOn(core)
//=================================================
lazy val testSettings = Seq(
libraryDependencies += Deps.specs2_core,
Test / parallelExecution := false,
)
lazy val dontPublishMe = Seq(
publishTo := None,
publish := (()),
publishLocal := (()),
publishArtifact := false
)
ThisBuild / description := "Serve HTTP using algebraic effects and handlers"
ThisBuild / organizationName := "marcinzh"
ThisBuild / homepage := Some(url("https://github.com/marcinzh/enterprise"))
ThisBuild / scmInfo := Some(ScmInfo(url("https://github.com/marcinzh/enterprise"), "scm:[email protected]:marcinzh/enterprise.git"))
ThisBuild / licenses := List("MIT" -> new URL("http://www.opensource.org/licenses/MIT"))
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / publishMavenStyle := true
ThisBuild / publishTo := {
val nexus = "https://s01.oss.sonatype.org/"
isSnapshot.value match {
case true => Some("snapshots" at nexus + "content/repositories/snapshots")
case false => Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
}
ThisBuild / pomExtra := (
<developers>
<developer>
<id>marcinzh</id>
<name>Marcin Żebrowski</name>
<url>https://github.com/marcinzh</url>
</developer>
</developers>
)