-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
60 lines (51 loc) · 2.04 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
import Dependencies._
import BuildHelper._
import xerial.sbt.Sonatype.sonatypeCentralHost
ThisBuild / sonatypeCredentialHost := sonatypeCentralHost
ThisBuild / sonatypeLogLevel := "debug"
inThisBuild(
List(
organization := "io.github.ragazoor",
homepage := Some(url("https://github.com/Ragazoor/typed-future")),
// Alternatively License.Apache2 see https://github.com/sbt/librarymanagement/blob/develop/core/src/main/scala/sbt/librarymanagement/License.scala
licenses := List("MIT" -> url("https://github.com/Ragazoor/typed-future?tab=MIT-1-ov-file#readme")),
developers := List(
Developer(
"Ragazoor",
"Ragnar Englund",
url("https://github.com/ragazoor")
)
)
)
)
addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")
lazy val root =
project
.in(file("."))
.settings(publish / skip := true)
.aggregate(result, benchmark, examples)
lazy val result = module("task", "task")
.enablePlugins(BuildInfoPlugin)
.settings(buildInfoSettings("io.github.ragazoor"))
.settings(libraryDependencies += munit % Test)
.settings(stdSettings("task"))
lazy val examples = module("examples", "examples")
.enablePlugins(BuildInfoPlugin)
.settings(buildInfoSettings("io.github.ragazoor"))
.settings(libraryDependencies += munit % Test)
.settings(publish / skip := true)
.settings(stdSettings("examples"))
.dependsOn(result)
lazy val benchmark = module("benchmark", "benchmark")
.enablePlugins(BuildInfoPlugin, JmhPlugin)
.settings(buildInfoSettings("io.github.ragazoor"))
.settings(libraryDependencies += munit % Test)
.settings(publish / skip := true)
.settings(stdSettings("benchmark"))
.dependsOn(result)
def module(moduleName: String, fileName: String): Project =
Project(moduleName, file(fileName))
.settings(stdSettings(moduleName))
// See https://www.scala-sbt.org/1.x/docs/Using-Sonatype.html for instructions on how to publish to Sonatype.