Ensure Java 8 level bytecode when built on Java 11

This commit is contained in:
Mat Booth 2020-07-16 11:24:42 +01:00
parent b952a34d82
commit 19527f1155

View File

@ -3,7 +3,7 @@
Name: apache-%{short_name}
Version: 1.20
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Java API for working with compressed files and archivers
License: ASL 2.0
URL: http://commons.apache.org/proper/commons-compress/
@ -68,6 +68,9 @@ rm src/test/java/org/apache/commons/compress/OsgiITest.java
%pom_add_dep org.mockito:mockito-core::test
rm src/test/java/org/apache/commons/compress/compressors/z/ZCompressorInputStreamTest.java
# Generate Java 8 level bytecode when built on Java 11
%pom_xpath_replace "pom:maven.compiler.release" "<maven.compiler.release>8</maven.compiler.release>"
%build
%mvn_file : %{short_name} %{name}
%mvn_alias : commons:
@ -83,6 +86,9 @@ rm src/test/java/org/apache/commons/compress/compressors/z/ZCompressorInputStrea
%doc LICENSE.txt NOTICE.txt
%changelog
* Thu Jul 16 2020 Mat Booth <mat.booth@redhat.com> - 1.20-3
- Ensure Java 8 level bytecode when built on Java 11
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 1.20-2
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11