Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7370390

Browse files
author
Antonio Alonso Dominguez
committed
Remove Scala Native dependencies when not in Scala 2.11
1 parent 4f28290 commit 7370390

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎build.sbt‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@ lazy val `scala-parser-combinators` = crossProject(JSPlatform, JVMPlatform, Nati
6161
name := "scala-parser-combinators-native",
6262
scalaVersion := "2.11.11",
6363
skip in compile := System.getProperty("java.version").startsWith("1.6"),
64-
test := {}
64+
test := {},
65+
libraryDependencies := {
66+
if (!scalaVersion.value.startsWith("2.11"))
67+
libraryDependencies.value.filterNot(_.organization == "org.scala-native")
68+
else libraryDependencies.value
69+
}
6570
)
6671

6772
lazy val `scala-parser-combinatorsJVM` = `scala-parser-combinators`.jvm

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /