Skip to content

Commit

Permalink
support scala 2.11 by using (yet another) jline artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross MacLeod committed May 12, 2014
1 parent 93ec339 commit 307c4f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/scala_maven/ScalaConsoleMojo.java
Expand Up @@ -60,7 +60,9 @@ protected void doExecute() throws Exception {
Set<String> classpath = new LinkedHashSet<String>();
addCompilerToClasspath(classpath);
addLibraryToClasspath(classpath);
if (new VersionNumber("2.9.0").compareTo(scalaVersion) <= 0) {
if (new VersionNumber("2.11.0").compareTo(scalaVersion) <= 0) {
addToClasspath("jline", "jline", scalaVersion.toString(), classpath);
} else if (new VersionNumber("2.9.0").compareTo(scalaVersion) <= 0) {
addToClasspath("org.scala-lang", "jline", scalaVersion.toString(), classpath);
} else {
addToClasspath("jline", "jline", "0.9.94", classpath);
Expand Down

0 comments on commit 307c4f5

Please sign in to comment.