Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
Exclude commons-codec and commons-io from assembled JAR
Browse files Browse the repository at this point in the history
Consumers of MXNet are exposed to the commons-codec and commons-io library versions MXNet uses internally. This change excludes those JARs from the JARs created with `make scalapkg`.
  • Loading branch information
Gordon Reid authored and Gordon Reid committed Jan 27, 2019
1 parent 61847be commit e6e62f9
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 3 deletions.
2 changes: 2 additions & 0 deletions scala-package/assembly/src/main/assembly/assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
<include>*:*:jar</include>
</includes>
<excludes>
<exclude>commons-codec:</exclude>
<exclude>commons-io:*</exclude>
<exclude>org.scala-lang:*</exclude>
<exclude>org.scala-lang.modules:*</exclude>
</excludes>
Expand Down
6 changes: 6 additions & 0 deletions scala-package/core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,16 @@
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.10</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.1</version>
<scope>provided</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mockito/mockito-all -->
<dependency>
Expand Down
10 changes: 10 additions & 0 deletions scala-package/deploy/src/main/deploy/deploy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,15 @@
<artifactId>scala-compiler</artifactId>
<version>SCALA_VERSION</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.10</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-codec</artifactId>
<version>2.1</version>
</dependency>
</dependencies>
</project>
7 changes: 4 additions & 3 deletions scala-package/macros/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@
<scope>provided</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.1</version>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.10</version>
<scope>provided</scope>
</dependency>
</dependencies>

Expand Down
1 change: 1 addition & 0 deletions scala-package/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.10</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
Expand Down

0 comments on commit e6e62f9

Please sign in to comment.