set javac source/target to 1.8 (fixes java 11) and ignore one test
This commit is contained in:
parent
855907beb6
commit
4a55768366
@ -1,6 +1,6 @@
|
||||
Name: jdependency
|
||||
Version: 1.2
|
||||
Release: 7%{?dist}
|
||||
Release: 8%{?dist}
|
||||
Summary: This project provides an API to analyse class dependencies
|
||||
License: ASL 2.0
|
||||
URL: http://github.com/tcurdt/%{name}
|
||||
@ -32,8 +32,14 @@ Summary: API documentation for %{name}
|
||||
%setup -q -n %{name}-%{name}-%{version}
|
||||
%mvn_file : %{name}
|
||||
|
||||
# remove maven-compiler-plugin configuration that is broken with Java 11
|
||||
%pom_xpath_remove 'pom:plugin[pom:artifactId="maven-compiler-plugin"]/pom:configuration'
|
||||
|
||||
# remove a test case that is harmlessly broken on Java 11
|
||||
rm src/test/java/org/vafer/jdependency/DependencyUtilsTestCase.java
|
||||
|
||||
%build
|
||||
%mvn_build
|
||||
%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
@ -46,6 +52,10 @@ Summary: API documentation for %{name}
|
||||
%license LICENSE.txt
|
||||
|
||||
%changelog
|
||||
* Sat Jul 18 2020 Fabio Valentini <decathorpe@gmail.com> - 1.2-8
|
||||
- Set javac source and target to 1.8 to fix Java 11 builds.
|
||||
- Remove one test case that is harmlessly broken with Java 11.
|
||||
|
||||
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 1.2-7
|
||||
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user