Fix build with Java 11
This commit is contained in:
parent
fd92e96168
commit
b2d80cad94
@ -1,6 +1,6 @@
|
|||||||
Name: apache-commons-cli
|
Name: apache-commons-cli
|
||||||
Version: 1.4
|
Version: 1.4
|
||||||
Release: 8%{?dist}
|
Release: 9%{?dist}
|
||||||
Summary: Command Line Interface Library for Java
|
Summary: Command Line Interface Library for Java
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: http://commons.apache.org/cli/
|
URL: http://commons.apache.org/cli/
|
||||||
@ -29,8 +29,14 @@ command line arguments and options.
|
|||||||
%mvn_alias : org.apache.commons:commons-cli
|
%mvn_alias : org.apache.commons:commons-cli
|
||||||
%mvn_file : commons-cli %{name}
|
%mvn_file : commons-cli %{name}
|
||||||
|
|
||||||
|
# Fix javadoc generation on java 11
|
||||||
|
%pom_xpath_inject pom:pluginManagement/pom:plugins "<plugin>
|
||||||
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
<configuration><source>1.6</source></configuration>
|
||||||
|
</plugin>"
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%mvn_build
|
%mvn_build -- -Dmaven.compiler.source=1.6 -Dmaven.compiler.target=1.6
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%mvn_install
|
%mvn_install
|
||||||
@ -40,6 +46,9 @@ command line arguments and options.
|
|||||||
%doc README.md RELEASE-NOTES.txt
|
%doc README.md RELEASE-NOTES.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jun 24 2020 Alexander Kurtakov <akurtako@redhat.com> 1.4-9
|
||||||
|
- Fix build with Java 11
|
||||||
|
|
||||||
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-8
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-8
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user