Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
[MXNET-1287] Up scala comp (#14667)
Browse files Browse the repository at this point in the history
* Upgrade scala compiler

* Fix scala version mismatch

* Fix no source root warnings

* Misc compiler fixes
  • Loading branch information
zachgk authored and lanking520 committed Apr 11, 2019
1 parent e701e71 commit 26b14bc
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 42 deletions.
6 changes: 3 additions & 3 deletions scala-package/assembly/src/main/assembly/assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
<exclude>org.slf4j:slf4j-api</exclude>
<exclude>args4j:args4j</exclude>
</excludes>
<outputDirectory>/</outputDirectory>
<useProjectArtifact>true</useProjectArtifact>
<outputDirectory>.</outputDirectory>
<useProjectArtifact>false</useProjectArtifact>
<unpack>true</unpack>
<scope>runtime</scope>
</dependencySet>
Expand Down Expand Up @@ -71,7 +71,7 @@
<include>cub/LICENSE.TXT</include>
<include>mkldnn/external/mklml_mac_2019.0.1.20180928/license.txt</include>
</includes>
<outputDirectory>/</outputDirectory>
<outputDirectory>.</outputDirectory>
</fileSet>
</fileSets>
</assembly>
2 changes: 1 addition & 1 deletion scala-package/assembly/src/main/assembly/javadoc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<fileSets>
<fileSet>
<directory>${rootdir}/core/target/site/scaladocs</directory>
<outputDirectory>/</outputDirectory>
<outputDirectory>.</outputDirectory>
</fileSet>
</fileSets>
</assembly>
2 changes: 1 addition & 1 deletion scala-package/assembly/src/main/assembly/source.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<includes>
<include>**\/*.scala</include>
</includes>
<outputDirectory>/</outputDirectory>
<outputDirectory>.</outputDirectory>
</fileSet>
</fileSets>
</assembly>
5 changes: 1 addition & 4 deletions scala-package/core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
Expand Down Expand Up @@ -141,6 +137,7 @@
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>org.apache.mxnet</groupId>
Expand Down
2 changes: 1 addition & 1 deletion scala-package/deploy/src/main/deploy/deploy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<dependency>
<groupId>org.scala-lang.modules</groupId>
<artifactId>scala-parser-combinators_2.11</artifactId>
<version>1.0.4</version>
<version>1.0.5</version>
</dependency>
<dependency>
<groupId>org.scala-lang</groupId>
Expand Down
4 changes: 0 additions & 4 deletions scala-package/examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions scala-package/infer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.scalatest</groupId>
<artifactId>scalatest-maven-plugin</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions scala-package/macros/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.scalatest</groupId>
<artifactId>scalatest-maven-plugin</artifactId>
Expand Down
46 changes: 26 additions & 20 deletions scala-package/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@
</scm>

<properties>
<java.version>1.7</java.version>
<scala.version>2.11.8</scala.version>
<build.platform/>
<scala.binary.version>2.11</scala.binary.version>
<build.platform />
<cxx>g++</cxx>
<dollar>$</dollar>
<MXNET_DIR>${project.basedir}/..</MXNET_DIR>
Expand Down Expand Up @@ -252,9 +255,11 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>UTF-8</encoding>
<skipMain>true</skipMain>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -339,11 +344,12 @@
</executions>
</plugin>
<plugin>
<groupId>org.scala-tools</groupId>
<artifactId>maven-scala-plugin</artifactId>
<version>2.15.2</version>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>3.4.4</version>
<configuration>
<recompileMode>incremental</recompileMode>
<source>${java.version}</source>
<target>${java.version}</target>
<compilerPlugins>
<compilerPlugin>
<groupId>org.scalamacros</groupId>
Expand All @@ -354,25 +360,19 @@
</configuration>
<executions>
<execution>
<id>compile</id>
<goals>
<goal>add-source</goal>
<goal>compile</goal>
<goal>testCompile</goal>
<goal>doc-jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>3.3.2</version>
<configuration>
</configuration>
<executions>
<execution>
<phase>package</phase>
<id>attach-javadocs</id>
<id>presite</id>
<phase>pre-site</phase>
<goals>
<goal>doc-jar</goal>
<goal>add-source</goal>
</goals>
</execution>
</executions>
Expand All @@ -388,6 +388,7 @@
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>commons-codec</groupId>
Expand Down Expand Up @@ -419,7 +420,7 @@
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_2.11</artifactId>
<version>3.0.4</version>
<version>3.0.2</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -454,7 +455,12 @@
<dependency>
<groupId>org.scala-lang.modules</groupId>
<artifactId>scala-parser-combinators_2.11</artifactId>
<version>1.0.4</version>
<version>1.0.5</version>
</dependency>
<dependency>
<groupId>org.scala-lang.modules</groupId>
<artifactId>scala-xml_2.11</artifactId>
<version>1.0.6</version>
</dependency>
<dependency>
<groupId>org.scala-lang</groupId>
Expand Down
5 changes: 5 additions & 0 deletions scala-package/spark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,10 @@
<artifactId>args4j</artifactId>
<version>2.33</version>
</dependency>
<dependency>
<groupId>org.json4s</groupId>
<artifactId>json4s-core_2.11</artifactId>
<version>3.5.1</version>
</dependency>
</dependencies>
</project>

0 comments on commit 26b14bc

Please sign in to comment.