Skip to content

Commit

Permalink
feat: build native package for JDKs 7, 8, and 11
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Gorzinski <[email protected]>
  • Loading branch information
ThePrez committed Jan 17, 2024
1 parent 2699b28 commit f2ee973
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions pom-dist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,53 @@
<outputDirectory>${project.build.outputDirectory}_native</outputDirectory>
</configuration>
</execution>

<execution>
<id>Compile Native JDK 8</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<source>8</source>
<target>8</target>
<release>8</release>
<fork>true</fork>
<compileSourceRoots>
<compileSourceRoot>${basedir}/target/sources_java8
</compileSourceRoot>
</compileSourceRoots>
<excludes>
<exclude>**/module-info.java</exclude>
</excludes>
<outputDirectory>${project.build.outputDirectory}_java8_native</outputDirectory>
</configuration>
</execution>
<execution>
<id>Compile Native JDK 11</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<source>11</source>
<target>11</target>
<release>11</release>
<fork>true</fork>
<compileSourceRoots>
<compileSourceRoot>${basedir}/target/sources_java11
</compileSourceRoot>
</compileSourceRoots>
<excludes>
<exclude>jt400/module-info.java</exclude>
<exclude>jt400Servlet/module-info.java</exclude>
<exclude>com/ibm/as400/util/html/**</exclude>
<exclude>com/ibm/as400/util/servlet/**</exclude>
<exclude>com/ibm/as400/access/TunnelProxyServer.java</exclude>
</excludes>
<outputDirectory>${project.build.outputDirectory}_java11_native</outputDirectory>
</configuration>
</execution>
<execution>
<id>default-compile</id>
<phase>compile</phase>
Expand Down Expand Up @@ -613,6 +660,34 @@
</archive>
</configuration>
</execution>
<execution>
<id>jt400Native-java8</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classesDirectory>${project.build.outputDirectory}_java8_native</classesDirectory>
<classifier>native-java8</classifier>
<archive>
<manifestFile>${project.build.outputDirectory}/../manifests/jt400Native_manifest.txt</manifestFile>
</archive>
</configuration>
</execution>
<execution>
<id>jt400Native-java11</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classesDirectory>${project.build.outputDirectory}_java11_native</classesDirectory>
<classifier>native-java11</classifier>
<archive>
<manifestFile>${project.build.outputDirectory}/../manifests/jt400Native_manifest.txt</manifestFile>
</archive>
</configuration>
</execution>
<execution>
<id>jt400-java11</id>
<phase>package</phase>
Expand Down

0 comments on commit f2ee973

Please sign in to comment.