From 4775eb414fa8285cfdc301e52dac52a2ef64c9e1 Mon Sep 17 00:00:00 2001 From: Stefan Schulze Date: Wed, 3 Aug 2016 17:07:10 -0700 Subject: [SPARK-16770][BUILD] Fix JLine dependency management and version (Sca… MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## What changes were proposed in this pull request? As of Scala 2.11.x there is no longer a org.scala-lang:jline version aligned to the scala version itself. Scala console now uses the plain jline:jline module. Spark's dependency management did not reflect this change properly, causing Maven to pull in Jline via transitive dependency. Unfortunately Jline 2.12 contained a minor but very annoying bug rendering the shell almost useless for developers with german keyboard layout. This request contains the following chages: - Exclude transitive dependency 'jline:jline' from hive-exec module - Remove global properties 'jline.version' and 'jline.groupId' - Add both properties and dependency to 'scala-2.11' profile - Add explicit dependency on 'jline:jline' to module 'spark-repl' ## How was this patch tested? - Running mvn dependency:tree and checking for correct Jline version 2.12.1 - Running full builds with assembly and checking for jline-2.12.1.jar in 'lib' folder of generated tarball Author: Stefan Schulze Closes #14429 from stsc-pentasys/SPARK-16770. --- repl/pom.xml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'repl') diff --git a/repl/pom.xml b/repl/pom.xml index 4e623a6ac1..73493e600e 100644 --- a/repl/pom.xml +++ b/repl/pom.xml @@ -71,6 +71,10 @@ ${scala.version} + ${jline.groupid} + jline + + org.slf4j jul-to-slf4j @@ -160,13 +164,6 @@ scala-2.10 - - - ${jline.groupid} - jline - ${jline.version} - - -- cgit v1.2.3