From 7a03594db941b7c449f3c12c90a5182f85d28bf4 Mon Sep 17 00:00:00 2001 From: Adrian Floarea Date: Sat, 1 Apr 2023 19:29:09 +0300 Subject: [PATCH] Configure maven for multi-release jar for owasp-encoder-core: - update maven-bundle-plugin to 3.5.0 - include module-info.java - configure maven-compiler-plugin for multi-release - configure maven-jar-plugin for multi-release --- core/src/main/java9/module-info.java | 3 ++ pom.xml | 42 ++++++++++++++++++++++++---- 2 files changed, 40 insertions(+), 5 deletions(-) create mode 100644 core/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..2cd46cd --- /dev/null +++ b/core/src/main/java9/module-info.java @@ -0,0 +1,3 @@ +module org.owasp.encoder { + exports org.owasp.encoder; +} \ No newline at end of file diff --git a/pom.xml b/pom.xml index 069f16f..c224f6e 100755 --- a/pom.xml +++ b/pom.xml @@ -241,7 +241,7 @@ org.apache.felix maven-bundle-plugin - 3.3.0 + 3.5.0 org.codehaus.mojo @@ -265,10 +265,35 @@ org.apache.maven.plugins maven-compiler-plugin - - 1.6 - 1.6 - + + + compile-java + compile + + compile + + + 1.6 + 1.6 + + + + compile-java-9 + compile + + compile + + + 9 + + + ${project.basedir}/src/main/java9 + + + true + + + org.apache.felix @@ -326,6 +351,13 @@ jar + + + + true + + +