From 2f151ce3219efdfb7f957b6836c976382f629a26 Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Tue, 30 Jul 2024 06:19:49 -0400 Subject: [PATCH] feat: multi-release jars - add module name (#77) resolves #66 --- core/src/main/java9/module-info.java | 3 ++ esapi/src/main/java9/module-info.java | 5 +++ jakarta/src/main/java9/module-info.java | 5 +++ jsp/src/main/java9/module-info.java | 5 +++ pom.xml | 41 ++++++++++++++++++++++--- 5 files changed, 55 insertions(+), 4 deletions(-) create mode 100644 core/src/main/java9/module-info.java create mode 100644 esapi/src/main/java9/module-info.java create mode 100644 jakarta/src/main/java9/module-info.java create mode 100644 jsp/src/main/java9/module-info.java diff --git a/core/src/main/java9/module-info.java b/core/src/main/java9/module-info.java new file mode 100644 index 0000000..fabb12a --- /dev/null +++ b/core/src/main/java9/module-info.java @@ -0,0 +1,3 @@ +module owasp.encoder { + exports org.owasp.encoder; +} diff --git a/esapi/src/main/java9/module-info.java b/esapi/src/main/java9/module-info.java new file mode 100644 index 0000000..e5e1e41 --- /dev/null +++ b/esapi/src/main/java9/module-info.java @@ -0,0 +1,5 @@ +module owasp.encoder.esapi { + requires owasp.encoder; + + exports org.owasp.encoder.esapi; +} \ No newline at end of file diff --git a/jakarta/src/main/java9/module-info.java b/jakarta/src/main/java9/module-info.java new file mode 100644 index 0000000..6f079b3 --- /dev/null +++ b/jakarta/src/main/java9/module-info.java @@ -0,0 +1,5 @@ +module owasp.encoder.jakarta { + requires owasp.encoder; + + exports org.owasp.encoder.tag; +} \ No newline at end of file diff --git a/jsp/src/main/java9/module-info.java b/jsp/src/main/java9/module-info.java new file mode 100644 index 0000000..8a1154a --- /dev/null +++ b/jsp/src/main/java9/module-info.java @@ -0,0 +1,5 @@ +module owasp.encoder.jsp { + requires owasp.encoder; + + exports org.owasp.encoder.tag; +} \ No newline at end of file diff --git a/pom.xml b/pom.xml index 2693301..6aaeff2 100755 --- a/pom.xml +++ b/pom.xml @@ -167,7 +167,7 @@ org.apache.maven.plugins maven-jar-plugin - 3.2.2 + 3.3.0 org.apache.maven.plugins @@ -241,7 +241,7 @@ org.apache.felix maven-bundle-plugin - 3.3.0 + 3.5.1 org.codehaus.mojo @@ -265,9 +265,42 @@ org.apache.maven.plugins maven-compiler-plugin + + + compile-java-8 + + compile + + + 1.8 + 1.8 + + + + compile-java-9 + compile + + compile + + + 9 + + ${project.basedir}/src/main/java9 + + true + + + + + + org.apache.maven.plugins + maven-jar-plugin - 1.6 - 1.6 + + + true + +