-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
38 lines (23 loc) · 1.38 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
crossScalaVersions := Seq("2.11.11", "2.12.2")
publishArtifact := false
organization in ThisBuild := "com.thoughtworks.constructor"
lazy val Constructor = crossProject.crossType(CrossType.Pure).dependsOn(Mixin % Test)
lazy val ConstructorJVM = Constructor.jvm.addSbtFiles(file("../build.sbt.shared"))
lazy val ConstructorJS = Constructor.js.addSbtFiles(file("../build.sbt.shared"))
lazy val Mixin = crossProject.crossType(CrossType.Pure)
lazy val MixinJVM = Mixin.jvm.addSbtFiles(file("../build.sbt.shared"))
lazy val MixinJS = Mixin.js.addSbtFiles(file("../build.sbt.shared"))
lazy val DelayMacros = crossProject.crossType(CrossType.Pure)
lazy val DelayMacrosJVM = DelayMacros.jvm.addSbtFiles(file("../build.sbt.shared"))
lazy val DelayMacrosJS = DelayMacros.js.addSbtFiles(file("../build.sbt.shared"))
lazy val Override = crossProject.crossType(CrossType.Pure).dependsOn(DelayMacros, Constructor % Test, Mixin % Test)
lazy val OverrideJVM = Override.jvm.addSbtFiles(file("../build.sbt.shared"))
lazy val OverrideJS = Override.js.addSbtFiles(file("../build.sbt.shared"))
lazy val unidoc = project
.enablePlugins(StandaloneUnidoc, TravisUnidocTitle)
.settings(
UnidocKeys.unidocProjectFilter in ScalaUnidoc in UnidocKeys.unidoc := {
inProjects(MixinJVM, ConstructorJVM, OverrideJVM)
},
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)
)