Fix build on JDK17
This commit is contained in:
parent
a3db7684f3
commit
6d8d337da1
1 changed files with 15 additions and 1 deletions
|
|
@ -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 '
|
||||
<properties>
|
||||
<argLine>
|
||||
--add-opens java.base/java.nio.charset=ALL-UNNAMED
|
||||
</argLine>
|
||||
</properties>' \
|
||||
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 <didiksupriadi41@fedoraproject.org> - 0.13-10
|
||||
- Fix build on JDK17
|
||||
|
||||
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Reference in a new issue