Skip to content

Commit

Permalink
Updated the shade configuration, so it creates jars that can be used for
Browse files Browse the repository at this point in the history
OSGi bundles and Eclipse integration.
  • Loading branch information
hallvard committed Mar 7, 2019
1 parent 335e9b1 commit eb31a5c
Show file tree
Hide file tree
Showing 6 changed files with 162 additions and 0 deletions.
24 changes: 24 additions & 0 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,30 @@
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>shaded</shadedClassifierName>
<artifactSet>
<excludes>
<exclude>tech.tablesaw:tablesaw-excel</exclude>
<exclude>org.apache.poi:*</exclude>
<exclude>commons-codec:commons-codec</exclude>
<exclude>org.apache.commons:commons-collections4</exclude>
<exclude>org.apache.xmlbeans:xmlbeans</exclude>
<exclude>org.apache.commons:commons-compress</exclude>
<exclude>com.github.virtuald:curvesapi</exclude>

<exclude>tech.tablesaw:tablesaw-html</exclude>
<exclude>org.jsoup:jsoup</exclude>

<exclude>tech.tablesaw:tablesaw-json</exclude>
<exclude>com.fasterxml.jackson.core:*</exclude>
<exclude>com.github.wnameless:json-flattener</exclude>
<exclude>com.eclipsesource.minimal-json:minimal-json</exclude>

<exclude>tech.tablesaw:tablesaw-smile</exclude>
<exclude>com.github.haifengl:smile-data</exclude>
<exclude>org.apache.commons:commons-text</exclude>
<exclude>com.github.haifengl:smile-math</exclude>
</excludes>
</artifactSet>
</configuration>
<executions>
<execution>
Expand Down
30 changes: 30 additions & 0 deletions excel/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,36 @@
<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-excel</include>
<include>org.apache.poi:*</include>
<include>commons-codec:commons-codec</include>
<include>org.apache.commons:commons-collections4</include>
<include>org.apache.xmlbeans:xmlbeans</include>
<include>org.apache.commons:commons-compress</include>
<include>com.github.virtuald:curvesapi</include>
</includes>
</artifactSet>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>

Expand Down
25 changes: 25 additions & 0 deletions html/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,31 @@
<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-html</include>
<include>org.jsoup:jsoup</include>
</includes>
</artifactSet>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>

Expand Down
26 changes: 26 additions & 0 deletions json/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,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>com.fasterxml.jackson.core:*</include>
<include>com.github.wnameless:json-flattener</include>
<include>com.eclipsesource.minimal-json:minimal-json</include>
</includes>
</artifactSet>
</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>
<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

0 comments on commit eb31a5c

Please sign in to comment.