Set compiler source and target to 1.8

This commit is contained in:
Didik Supriadi 2022-02-23 09:39:45 +07:00
commit 0c5eaaeb20

View file

@ -2,7 +2,7 @@
Name: apache-commons-fileupload
Version: 1.4
Release: 9%{?dist}
Release: 10%{?dist}
Summary: API to work with HTML file upload
License: ASL 2.0
URL: http://commons.apache.org/fileupload/
@ -49,6 +49,10 @@ sed -i "s|<groupId>portlet-api</groupId>|<groupId>javax.portlet</groupId>|" pom.
rm -r src/main/java/org/apache/commons/fileupload/portlet
%endif
# set compiler source and target
%pom_xpath_set pom:maven.compiler.source 1.8
%pom_xpath_set pom:maven.compiler.target 1.8
# -----------------------------------------------------------------------------
%mvn_file ":{*}" @1 %{name}
@ -70,6 +74,9 @@ rm -r src/main/java/org/apache/commons/fileupload/portlet
# -----------------------------------------------------------------------------
%changelog
* Wed Feb 23 2022 Didik Supriadi <didiksupriadi41@fedoraproject.org> - 1.4-10
- Set compiler source and target to 1.8
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 1.4-9
- Rebuilt for java-17-openjdk as system jdk