Skip to content

Commit

Permalink
do not use bootique-parent, it leaks Java 8 settings
Browse files Browse the repository at this point in the history
  • Loading branch information
andrus committed Feb 7, 2022
1 parent 51108bd commit 0f9d9cf
Showing 1 changed file with 36 additions and 6 deletions.
42 changes: 36 additions & 6 deletions jdbc-app-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.bootique.parent</groupId>
<artifactId>bootique-parent</artifactId>
<version>0.14</version>
</parent>

<groupId>io.bootique.jdbc.demo</groupId>
<artifactId>jdbc-app-demo</artifactId>
Expand Down Expand Up @@ -65,7 +60,42 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<version>3.9.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>

<configuration>
<createDependencyReducedPom>true</createDependencyReducedPom>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>${main.class}</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
Expand Down

0 comments on commit 0f9d9cf

Please sign in to comment.