From 1d221c2d35ff4eeddc60dd2e31ae5b11cd4e62f4 Mon Sep 17 00:00:00 2001 From: Alexandre Archambault Date: Sun, 28 Jun 2015 15:36:17 +0200 Subject: [PATCH] Dummy indirection for web project in 2.10 --- project/Coursier.scala | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/project/Coursier.scala b/project/Coursier.scala index 3d7d9b367..c520e5fc8 100644 --- a/project/Coursier.scala +++ b/project/Coursier.scala @@ -137,9 +137,22 @@ object CoursierBuild extends Build { .dependsOn(coreJs) .settings(commonSettings: _*) .settings( - libraryDependencies ++= Seq( - "com.github.japgolly.scalajs-react" %%% "core" % "0.9.0" - ), + libraryDependencies ++= { + if (scalaVersion.value startsWith "2.10.") + Seq() + else + Seq( + "com.github.japgolly.scalajs-react" %%% "core" % "0.9.0" + ) + }, + sourceDirectory := { + val dir = sourceDirectory.value + + if (scalaVersion.value startsWith "2.10.") + dir / "dummy" + else + dir + }, resolvers += "Webjars Bintray" at "https://dl.bintray.com/webjars/maven/", jsDependencies ++= Seq( ("org.webjars.bower" % "bootstrap" % "3.3.4" intransitive()) / "bootstrap.min.js" commonJSName "Bootstrap",