[HUDI-238] Make Hudi support Scala 2.12 (#1226)
* [HUDI-238] Rename scala related artifactId & add maven profile to support Scala 2.12
This commit is contained in:
committed by
Balaji Varadarajan
parent
923e2b4a1e
commit
292c1e2ff4
50
pom.xml
50
pom.xml
@@ -75,6 +75,7 @@
|
||||
|
||||
<java.version>1.8</java.version>
|
||||
<fasterxml.version>2.6.7</fasterxml.version>
|
||||
<kafka.version>2.0.0</kafka.version>
|
||||
<glassfish.version>2.17</glassfish.version>
|
||||
<parquet.version>1.10.1</parquet.version>
|
||||
<junit.version>4.11</junit.version>
|
||||
@@ -91,7 +92,7 @@
|
||||
<spark.version>2.4.4</spark.version>
|
||||
<avro.version>1.8.2</avro.version>
|
||||
<scala.version>2.11.8</scala.version>
|
||||
<scala.libversion>2.11</scala.libversion>
|
||||
<scala.binary.version>2.11</scala.binary.version>
|
||||
<apache-rat-plugin.version>0.12</apache-rat-plugin.version>
|
||||
<scala-maven-plugin.version>3.3.1</scala-maven-plugin.version>
|
||||
<scalatest.version>3.0.1</scalatest.version>
|
||||
@@ -423,8 +424,8 @@
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.module</groupId>
|
||||
<artifactId>jackson-module-scala_2.11</artifactId>
|
||||
<version>${fasterxml.version}</version>
|
||||
<artifactId>jackson-module-scala_${scala.binary.version}</artifactId>
|
||||
<version>${fasterxml.version}.1</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Glassfish -->
|
||||
@@ -470,13 +471,13 @@
|
||||
<!-- Spark -->
|
||||
<dependency>
|
||||
<groupId>org.apache.spark</groupId>
|
||||
<artifactId>spark-core_2.11</artifactId>
|
||||
<artifactId>spark-core_${scala.binary.version}</artifactId>
|
||||
<version>${spark.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.spark</groupId>
|
||||
<artifactId>spark-sql_2.11</artifactId>
|
||||
<artifactId>spark-sql_${scala.binary.version}</artifactId>
|
||||
<version>${spark.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
@@ -484,7 +485,7 @@
|
||||
<!-- Spark (Packages) -->
|
||||
<dependency>
|
||||
<groupId>org.apache.spark</groupId>
|
||||
<artifactId>spark-avro_2.11</artifactId>
|
||||
<artifactId>spark-avro_${scala.binary.version}</artifactId>
|
||||
<version>${spark.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
@@ -1040,6 +1041,43 @@
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<!-- Exists for backwards compatibility; profile doesn't do anything -->
|
||||
<profile>
|
||||
<id>scala-2.11</id>
|
||||
</profile>
|
||||
|
||||
<profile>
|
||||
<id>scala-2.12</id>
|
||||
<properties>
|
||||
<scala.version>2.12.10</scala.version>
|
||||
<scala.binary.version>2.12</scala.binary.version>
|
||||
</properties>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>enforce-versions</id>
|
||||
<goals>
|
||||
<goal>enforce</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<rules>
|
||||
<bannedDependencies>
|
||||
<excludes combine.children="append">
|
||||
<exclude>*:*_2.11</exclude>
|
||||
</excludes>
|
||||
</bannedDependencies>
|
||||
</rules>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
<issueManagement>
|
||||
|
||||
Reference in New Issue
Block a user