[jvm-packages] upgrade to Scala 2.12 (#4574)
* bump scala to 2.12 which requires java 8 and also newer flink and akka * put scala version in artifactId * fix appveyor * fix for scaladoc issue that looks like https://github.com/scala/bug/issues/10509 * fix ci_build * update versions in generate_pom.py * fix generate_pom.py * apache does not have a download for spark 2.4.3 distro using scala 2.12 yet, so for now i use a tgz i put on s3 * Upload spark-2.4.3-bin-scala2.12-hadoop2.7.tgz to our own S3 * Update Dockerfile.jvm_cross * Update Dockerfile.jvm_cross
This commit is contained in:
@@ -8,10 +8,10 @@ pom_template = """
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>ml.dmlc</groupId>
|
||||
<artifactId>xgboost4j-tester</artifactId>
|
||||
<artifactId>xgboost4j-tester_2.12</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
|
||||
<name>xgboost4j-tester</name>
|
||||
<name>xgboost4j-tester_2.12</name>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
@@ -51,19 +51,25 @@ pom_template = """
|
||||
<dependency>
|
||||
<groupId>com.typesafe.akka</groupId>
|
||||
<artifactId>akka-actor_${{scala.binary.version}}</artifactId>
|
||||
<version>2.3.11</version>
|
||||
<version>2.5.23</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.typesafe.akka</groupId>
|
||||
<artifactId>akka-testkit_${{scala.binary.version}}</artifactId>
|
||||
<version>2.3.11</version>
|
||||
<version>2.5.23</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.scalatest</groupId>
|
||||
<artifactId>scalatest_${{scala.binary.version}}</artifactId>
|
||||
<version>3.0.0</version>
|
||||
<version>3.0.8</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.scalactic</groupId>
|
||||
<artifactId>scalactic_${{scala.binary.version}}</artifactId>
|
||||
<version>3.0.8</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@@ -97,12 +103,12 @@ pom_template = """
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ml.dmlc</groupId>
|
||||
<artifactId>xgboost4j</artifactId>
|
||||
<artifactId>xgboost4j_${{scala.binary.version}}</artifactId>
|
||||
<version>{xgboost4j_version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ml.dmlc</groupId>
|
||||
<artifactId>xgboost4j</artifactId>
|
||||
<artifactId>xgboost4j_${{scala.binary.version}}</artifactId>
|
||||
<version>{xgboost4j_version}</version>
|
||||
<classifier>tests</classifier>
|
||||
<type>test-jar</type>
|
||||
@@ -110,12 +116,12 @@ pom_template = """
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ml.dmlc</groupId>
|
||||
<artifactId>xgboost4j-spark</artifactId>
|
||||
<artifactId>xgboost4j-spark_${{scala.binary.version}}</artifactId>
|
||||
<version>{xgboost4j_version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ml.dmlc</groupId>
|
||||
<artifactId>xgboost4j-example</artifactId>
|
||||
<artifactId>xgboost4j-example_${{scala.binary.version}}</artifactId>
|
||||
<version>{xgboost4j_version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
@@ -186,7 +192,7 @@ pom_template = """
|
||||
<version>2.22.1</version>
|
||||
<configuration>
|
||||
<dependenciesToScan>
|
||||
<dependency>ml.dmlc:xgboost4j</dependency>
|
||||
<dependency>ml.dmlc:xgboost4j_2.12</dependency>
|
||||
</dependenciesToScan>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
Reference in New Issue
Block a user