From 6d8d337da10fe0bf270d1a4a5de9005c74beec65 Mon Sep 17 00:00:00 2001 From: Didik Supriadi Date: Sat, 18 Dec 2021 18:35:17 +0700 Subject: [PATCH] Fix build on JDK17 --- apache-rat.spec | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/apache-rat.spec b/apache-rat.spec index 5d6e6a2..f62ffd3 100644 --- a/apache-rat.spec +++ b/apache-rat.spec @@ -1,7 +1,7 @@ Name: apache-rat Summary: Apache Release Audit Tool (RAT) Version: 0.13 -Release: 9%{?dist} +Release: 10%{?dist} License: ASL 2.0 URL: http://creadur.apache.org/rat/ @@ -136,6 +136,17 @@ sed -i "s/org.apache.commons.lang./org.apache.commons.lang3./g" \ # incompatible with our plexus-container rm apache-rat-plugin/src/test/java/org/apache/rat/mp/RatCheckMojoTest.java +# incompatible with java17 +rm apache-rat-core/src/test/java/org/apache/rat/header/HeaderMatcherTest.java + +%pom_xpath_inject pom:project ' + + + --add-opens java.base/java.nio.charset=ALL-UNNAMED + + ' \ + apache-rat-tasks + %build %mvn_build -s -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 @@ -173,6 +184,9 @@ echo "apache-rat/rat-core apache-rat/rat-tasks" > $RPM_BUILD_ROOT%{_sysconfdir}/ %changelog +* Sat Dec 18 2021 Didik Supriadi - 0.13-10 +- Fix build on JDK17 + * Wed Jul 21 2021 Fedora Release Engineering - 0.13-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild