Skip to content

Commit 6be8b04

Browse files
Move macros to separate scala-2.x directory
1 parent f7b4cca commit 6be8b04

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

build.sbt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,23 @@ lazy val sourcecode = crossProject(JSPlatform, JVMPlatform, NativePlatform)
4040
libraryDependencies ++= macroDependencies(scalaVersion.value),
4141
test in Test := (run in Test).toTask("").value,
4242
unmanagedSourceDirectories in Compile ++= {
43-
CrossVersion.partialVersion(scalaVersion.value) match {
43+
val crossVer = CrossVersion.partialVersion(scalaVersion.value)
44+
45+
val scala211plus = crossVer match {
4446
case Some((2, n)) if n >= 11 =>
4547
Seq(baseDirectory.value / ".." / "shared" / "src" / "main" / "scala-2.11+")
4648
case _ =>
4749
Seq()
4850
}
51+
52+
val scala2 = crossVer match {
53+
case Some((2, _)) =>
54+
Seq(baseDirectory.value / ".." / "shared" / "src" / "main" / "scala-2.x")
55+
case _ =>
56+
Seq()
57+
}
58+
59+
scala211plus ++ scala2
4960
},
5061
// Osgi settings
5162
osgiSettings,

0 commit comments

Comments
 (0)