6
0

Compare commits

2 Commits

2 changed files with 12 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Mar 22 14:01:45 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Build with java source and target levels 8
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Nov 24 17:36:45 UTC 2019 - Fridrich Strba <fstrba@suse.com> Sun Nov 24 17:36:45 UTC 2019 - Fridrich Strba <fstrba@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package maven-war-plugin # spec file for package maven-war-plugin
# #
# Copyright (c) 2019 SUSE LLC # Copyright (c) 2022 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -22,9 +22,10 @@ Release: 0
Summary: Maven WAR Plugin Summary: Maven WAR Plugin
License: Apache-2.0 License: Apache-2.0
Group: Development/Libraries/Java Group: Development/Libraries/Java
URL: http://maven.apache.org/plugins/maven-war-plugin/ URL: https://maven.apache.org/plugins/maven-war-plugin/
Source0: http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip Source0: https://repo1.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: maven-local BuildRequires: maven-local
BuildRequires: unzip BuildRequires: unzip
BuildRequires: mvn(com.thoughtworks.xstream:xstream) BuildRequires: mvn(com.thoughtworks.xstream:xstream)
@@ -59,10 +60,11 @@ API documentation for %{name}.
%pom_remove_plugin :maven-enforcer-plugin %pom_remove_plugin :maven-enforcer-plugin
%build %build
%{mvn_build} -f \ %{mvn_build} -f -- \
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0} %if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
-- -Dmaven.compiler.release=6 -Dmaven.compiler.release=8 \
%endif %endif
-Dsource=8
%install %install
%mvn_install %mvn_install