Skip to content

Commit

Permalink
feat: multi-release jars - add module name (#77)
Browse files Browse the repository at this point in the history
resolves #66
  • Loading branch information
jeremylong authored Jul 30, 2024
1 parent 0fc8cde commit 2f151ce
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 4 deletions.
3 changes: 3 additions & 0 deletions core/src/main/java9/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module owasp.encoder {
exports org.owasp.encoder;
}
5 changes: 5 additions & 0 deletions esapi/src/main/java9/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module owasp.encoder.esapi {
requires owasp.encoder;

exports org.owasp.encoder.esapi;
}
5 changes: 5 additions & 0 deletions jakarta/src/main/java9/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module owasp.encoder.jakarta {
requires owasp.encoder;

exports org.owasp.encoder.tag;
}
5 changes: 5 additions & 0 deletions jsp/src/main/java9/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module owasp.encoder.jsp {
requires owasp.encoder;

exports org.owasp.encoder.tag;
}
41 changes: 37 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.2</version>
<version>3.3.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -241,7 +241,7 @@
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>3.3.0</version>
<version>3.5.1</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
Expand All @@ -265,9 +265,42 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>compile-java-8</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</execution>
<execution>
<id>compile-java-9</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<release>9</release>
<compileSourceRoots>
<compileSourceRoot>${project.basedir}/src/main/java9</compileSourceRoot>
</compileSourceRoots>
<multiReleaseOutput>true</multiReleaseOutput>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
<archive>
<manifestEntries>
<Multi-Release>true</Multi-Release>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
Expand Down

0 comments on commit 2f151ce

Please sign in to comment.