From b6e76de85a07549f2c97941437dd73430d7287a8 Mon Sep 17 00:00:00 2001 From: Dave Wichers Date: Thu, 7 Apr 2022 19:18:36 -0400 Subject: [PATCH] Update pom.xml so it builds Java 7 bytecode instead of Java 8, which was a mistake in the 1.6.6 release. Upgrade various plugins that released new versions since the 1.6.6 release and add a few more checks during the release process. This is the only change for the 1.6.6.1 release. The primary change being it allows Java 7 projects to use AntiSamy, as long as they exclude the 2 dependencies we use that require Java 8, and include the last Java 7 versions of those dependencies. --- pom.xml | 182 ++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 111 insertions(+), 71 deletions(-) diff --git a/pom.xml b/pom.xml index 164cc03d..1504f23a 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ org.owasp.antisamy antisamy jar - 1.6.6 + 1.6.6.1 ossrh @@ -41,9 +41,11 @@ - UTF-8 - 2022-04-21T21:46:00Z true + UTF-8 + 2022-04-07T19:23:45Z + 1.7 + 1.12.0 2.11.0 1.7.36 4.6.0.0 @@ -219,18 +221,21 @@ org.apache.maven.plugins maven-clean-plugin - 3.1.0 + 3.2.0 org.apache.maven.plugins maven-compiler-plugin 3.10.1 - 1.8 - 1.8 - 1.8 - 1.8 - -Xlint:unchecked + ${project.java.target} + ${project.java.target} + ${project.java.target} + ${project.java.target} + + + -Xlint:unchecked + @@ -248,6 +253,11 @@ extra-enforcer-rules 1.5.1 + + org.codehaus.mojo + animal-sniffer-enforcer-rule + 1.21 + @@ -274,12 +284,29 @@ - 1.7 + ${project.java.target} Antisamy source code is written to support Java 7+. + + check-java7API-signatures + compile + enforce + + + + + org.codehaus.mojo.signature + + java17 + 1.0 + + + + + @@ -325,6 +352,21 @@ + + org.apache.maven.plugins + maven-jxr-plugin + 3.2.0 + + + org.apache.maven.plugins + maven-pmd-plugin + 3.16.0 + + + org.apache.maven.plugins + maven-project-info-reports-plugin + 3.2.2 + org.apache.maven.plugins maven-resources-plugin @@ -350,7 +392,12 @@ org.apache.maven.plugins maven-surefire-plugin - 3.0.0-M5 + 3.0.0-M6 + + + org.codehaus.mojo + versions-maven-plugin + 2.10.0 org.cyclonedx @@ -366,7 +413,7 @@ org.jacoco jacoco-maven-plugin - 0.8.7 + 0.8.8 prepare-agent @@ -411,74 +458,56 @@ - - org.apache.maven.plugins - maven-pmd-plugin - 3.16.0 - - - - org.ow2.asm - asm - 9.2 - - + com.h3xstream.findsecbugs + findsecbugs-plugin + ${version.findsecbugs} + + + - org.codehaus.mojo - versions-maven-plugin - 2.10.0 - - - - dependency-updates-report - plugin-updates-report - property-updates-report - - - + com.github.spotbugs + spotbugs-maven-plugin + + + + com.h3xstream.findsecbugs + findsecbugs-plugin + ${version.findsecbugs} + + + Max + false + src/test/spotbugsFilterFile.xml + + - - org.jacoco - jacoco-maven-plugin - - - report - - + org.apache.maven.plugins + maven-javadoc-plugin org.apache.maven.plugins - maven-javadoc-plugin + maven-jxr-plugin org.apache.maven.plugins maven-pmd-plugin - 1.7 + ${project.java.target} utf-8 - - org.apache.maven.plugins - maven-jxr-plugin - 3.2.0 - org.apache.maven.plugins maven-project-info-reports-plugin - 3.2.2 @@ -491,22 +520,33 @@ false + - com.github.spotbugs - spotbugs-maven-plugin - - - - com.h3xstream.findsecbugs - findsecbugs-plugin - 1.11.0 - - - Max - false - src/test/spotbugsFilterFile.xml - + org.codehaus.mojo + versions-maven-plugin + + + + dependency-updates-report + plugin-updates-report + property-updates-report + + + + + + + org.jacoco + jacoco-maven-plugin + + + report + + + +