Skip to content

Commit

Permalink
Fix scala-js/scala-js#2005: Add cross-version shared source directories.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrd committed Feb 6, 2016
1 parent 84ac65e commit b11efdc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sbt-plugin-test/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,17 @@ lazy val multiTest = crossProject.
libraryDependencies +=
"com.novocode" % "junit-interface" % "0.9" % "test"
).
settings(
// Scala cross-version support for shared source directory - #2005
unmanagedSourceDirectories in Compile := {
val srcDirs = (unmanagedSourceDirectories in Compile).value
val version = scalaBinaryVersion.value
val expected =
(baseDirectory.value.getParentFile / "shared" / "src" / "main" / s"scala-$version").getPath
assert(srcDirs.exists(_.getPath == expected))
srcDirs
}
).
dependsOn(testFramework % "test")

lazy val multiTestJS = multiTest.js
Expand Down

0 comments on commit b11efdc

Please sign in to comment.