diff --git a/aho-corasick-double-array-trie.changes b/aho-corasick-double-array-trie.changes index 07418dc..ad90bca 100644 --- a/aho-corasick-double-array-trie.changes +++ b/aho-corasick-double-array-trie.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Mar 21 14:34:17 UTC 2022 - Fridrich Strba + +- Build with maven.compiler.release=8 on any JDK >= 9 + ------------------------------------------------------------------- Thu Feb 27 08:46:00 UTC 2020 - Fridrich Strba diff --git a/aho-corasick-double-array-trie.spec b/aho-corasick-double-array-trie.spec index 0a5c7a6..14b9e8c 100644 --- a/aho-corasick-double-array-trie.spec +++ b/aho-corasick-double-array-trie.spec @@ -1,7 +1,7 @@ # # spec file for package aho-corasick-double-array-trie # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,6 +25,7 @@ URL: https://github.com/hankcs/AhoCorasickDoubleArrayTrie Source0: https://github.com/hankcs/AhoCorasickDoubleArrayTrie/archive/v%{version}.tar.gz Source1: http://www.apache.org/licenses/LICENSE-2.0.txt BuildRequires: fdupes +BuildRequires: java-devel >= 1.8 BuildRequires: maven-local BuildArch: noarch @@ -44,7 +45,11 @@ cp %{SOURCE1} . %pom_remove_plugin :maven-source-plugin %build -%{mvn_build} -f -- -Dsource=6 +%{mvn_build} -f -- \ +%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0} + -Dmaven.compiler.release=8 \ +%endif + -Dsource=8 %install %mvn_install