From a7ffaa09c559c6095a9c5d0090ec80cac20d1dc7 Mon Sep 17 00:00:00 2001 From: Mat Booth Date: Fri, 26 Jun 2020 16:18:50 +0100 Subject: [PATCH] Allow building against Java 11 --- jansi-native.spec | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/jansi-native.spec b/jansi-native.spec index 09db731..1544dee 100644 --- a/jansi-native.spec +++ b/jansi-native.spec @@ -7,7 +7,7 @@ Name: jansi-native Version: 1.8 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Jansi Native implements the JNI Libraries used by the Jansi project License: ASL 2.0 URL: http://jansi.fusesource.org/ @@ -39,6 +39,19 @@ This package contains the API documentation for %{name}. %mvn_alias :jansi-linux%{bits} :jansi-linux %mvn_file :jansi-linux%{bits} %{name}/jansi-linux%{bits} %{name}/jansi-linux +# remove hard-coded compiler settings +%pom_remove_plugin :maven-compiler-plugin + +# fix javadoc generation for java 11 +%pom_remove_plugin :maven-javadoc-plugin +%pom_xpath_inject pom:pluginManagement/pom:plugins " +maven-javadoc-plugin + +1.8 +false + +" + %build %mvn_build %mvn_build -- -Dplatform=linux%{bits} @@ -54,6 +67,9 @@ This package contains the API documentation for %{name}. %license license.txt %changelog +* Fri Jun 26 2020 Mat Booth - 1.8-3 +- Allow building against Java 11 + * Wed Jan 29 2020 Fedora Release Engineering - 1.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild