Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the shade configuration, so it creates jars that can be used for #481

Merged
merged 9 commits into from
Mar 9, 2019
9 changes: 9 additions & 0 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@
<artifactId>guava</artifactId>
<version>25.1-jre</version>
</dependency>
<dependency>
benmccann marked this conversation as resolved.
Show resolved Hide resolved
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.8.1</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-math3</artifactId>
Expand All @@ -115,24 +120,28 @@
<artifactId>tablesaw-excel</artifactId>
<version>0.31.1-SNAPSHOT</version>
<optional>true</optional>
<scope>provided</scope> <!-- because the shade plugin doesn't exclude optional dependencies -->
</dependency>
<dependency>
<groupId>tech.tablesaw</groupId>
<artifactId>tablesaw-html</artifactId>
<version>0.31.1-SNAPSHOT</version>
<optional>true</optional>
<scope>provided</scope> <!-- because the shade plugin doesn't exclude optional dependencies -->
</dependency>
<dependency>
<groupId>tech.tablesaw</groupId>
<artifactId>tablesaw-json</artifactId>
<version>0.31.1-SNAPSHOT</version>
<optional>true</optional>
<scope>provided</scope> <!-- because the shade plugin doesn't exclude optional dependencies -->
</dependency>
<dependency>
<groupId>tech.tablesaw</groupId>
<artifactId>tablesaw-smile</artifactId>
<version>0.31.1-SNAPSHOT</version>
<optional>true</optional>
<scope>provided</scope> <!-- because the shade plugin doesn't exclude optional dependencies -->
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down
19 changes: 19 additions & 0 deletions excel/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,25 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.0</version>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move all the common configuration under pluginManagement in the parent pom?

<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>shaded</shadedClassifierName>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>

Expand Down
19 changes: 19 additions & 0 deletions html/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,25 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>shaded</shadedClassifierName>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>

Expand Down
19 changes: 19 additions & 0 deletions json/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,25 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>shaded</shadedClassifierName>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>

Expand Down
26 changes: 26 additions & 0 deletions jsplot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,32 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>shaded</shadedClassifierName>
<artifactSet>
<includes>
<include>io.pebbletemplates:pebble</include>
<include>com.coverity.security:coverity-escapers</include>
<include>org.slf4j:slf4j-api</include>
</includes>
</artifactSet>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>
<dependencies>
Expand Down
31 changes: 31 additions & 0 deletions smile/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,37 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>shaded</shadedClassifierName>
<artifactSet>
<includes>
<include>tech.tablesaw:tablesaw-smile</include>
<include>com.github.haifengl:smile-data</include>
<include>com.github.haifengl:smile-math</include>
<include>org.apache.commons:commons-text</include>
<!-- included in core
<include>org.apache.commons:commons-lang3</include>
benmccann marked this conversation as resolved.
Show resolved Hide resolved
<include>org.slf4j:slf4j-api</include>
-->
</includes>
</artifactSet>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>

Expand Down