forked from Billzabob/dissonance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
66 lines (60 loc) · 2.17 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
import Dependencies._
lazy val dissonance = project
.in(file("."))
.settings(commonSettings, releaseSettings, publish / skip := true)
.aggregate(core)
lazy val core = project
.in(file("core"))
.settings(commonSettings, releaseSettings)
.settings(
name := "dissonance",
// TODO: Remove below here when we remove Main.scala
fork := true, // Fork to separate process
connectInput := true, // Connects stdin to sbt during forked runs
outputStrategy := Some(StdoutOutput), // Get rid of output prefix
testFrameworks += new TestFramework("weaver.framework.CatsEffect")
)
lazy val docs = project
.in(file("dissonance-docs"))
.settings(
commonSettings,
mdocIn := file("docs/README.md"),
mdocOut := file("README.md"),
publish / skip := true
)
.dependsOn(core)
.enablePlugins(MdocPlugin)
lazy val commonSettings = Seq(
scalaVersion := "2.13.5",
crossScalaVersions := List(scalaVersion.value, "2.12.12"),
scalacOptions ++= (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, n)) if n >= 13 => Seq("-Ymacro-annotations")
case _ => Nil
}),
libraryDependencies ++= (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, v)) if v <= 12 => Seq(compilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full))
case _ => Nil
}) ++ dependencies,
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1"),
addCompilerPlugin("org.typelevel" %% "kind-projector" % "0.11.3" cross CrossVersion.full)
)
lazy val releaseSettings = Seq(
organization := "com.github.billzabob",
homepage := Some(url("https://github.com/billzabob/dissonance")),
licenses := Seq("LGPL-3.0" -> url("https://www.gnu.org/licenses/lgpl-3.0.en.html")),
developers := List(
Developer(
"billzabob",
"Nick Hallstrom",
"cocolymoo@gmail.com",
url("https://github.com/billzabob")
),
Developer(
"hogiyogi597",
"Stephen Hogan",
"stevyhogan@gmail.com",
url("https://github.com/hogiyogi597")
)
)
)
Global / onChangedBuildSource := ReloadOnSourceChanges