From 649335d6c1dd0884bf6f6618cd56fb480fe40886 Mon Sep 17 00:00:00 2001 From: Josh Rosen Date: Thu, 21 Apr 2016 09:57:26 -0700 Subject: [SPARK-14797][BUILD] Spark SQL POM should not hardcode spark-sketch_2.11 dep. Spark SQL's POM hardcodes a dependency on `spark-sketch_2.11`, which causes Scala 2.10 builds to include the `_2.11` dependency. This is harmless since `spark-sketch` is a pure-Java module (see #12334 for a discussion of dropping the Scala version suffixes from these modules' artifactIds), but it's confusing to people looking at the published POMs. This patch fixes this by using `${scala.binary.version}` to substitute the correct suffix, and also adds a set of Maven Enforcer rules to ensure that `_2.11` artifacts are not used in 2.10 builds (and vice-versa). /cc ahirreddy, who spotted this issue. Author: Josh Rosen Closes #12563 from JoshRosen/fix-sketch-scala-version. --- sql/core/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql') diff --git a/sql/core/pom.xml b/sql/core/pom.xml index 8b1017042c..e1071ebfb5 100644 --- a/sql/core/pom.xml +++ b/sql/core/pom.xml @@ -44,7 +44,7 @@ org.apache.spark - spark-sketch_2.11 + spark-sketch_${scala.binary.version} ${project.version} -- cgit v1.2.3