Add boolean dependencies between plugin and provider subpackages
maven-surefire-plugin requires its providers to work correctly, yet it doesn't have any dependencies on them -- it relies on maven-local to pull in appropriate providers. In order to make Java buildroots smaller, maven-local will no longer require Surefire providers. Instead, maven-surefire-plugin needs to conditionally require its providers, depending on whether particular testing framework package (JUnit, TestNG) is installed.
This commit is contained in:
parent
f1fc29c52d
commit
dd1f216ba3
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: maven-surefire
|
Name: maven-surefire
|
||||||
Version: 2.22.0
|
Version: 2.22.0
|
||||||
Release: 9%{?dist}
|
Release: 10%{?dist}
|
||||||
Epoch: 0
|
Epoch: 0
|
||||||
Summary: Test framework project
|
Summary: Test framework project
|
||||||
License: ASL 2.0 and CPL
|
License: ASL 2.0 and CPL
|
||||||
@ -62,6 +62,11 @@ Surefire is a test framework project.
|
|||||||
|
|
||||||
%package plugin
|
%package plugin
|
||||||
Summary: Surefire plugin for maven
|
Summary: Surefire plugin for maven
|
||||||
|
Requires: (%{name}-provider-junit = %{epoch}:%{version}-%{release} if junit)
|
||||||
|
Requires: (%{name}-provider-testng = %{epoch}:%{version}-%{release} if testng)
|
||||||
|
%if %{with junit5}
|
||||||
|
Requires: (%{name}-provider-junit5 = %{epoch}:%{version}-%{release} if junit5)
|
||||||
|
%endif
|
||||||
|
|
||||||
%description plugin
|
%description plugin
|
||||||
Maven surefire plugin for running tests via the surefire framework.
|
Maven surefire plugin for running tests via the surefire framework.
|
||||||
@ -204,6 +209,9 @@ sed -i /-Xdoclint:all/d pom.xml
|
|||||||
%license LICENSE NOTICE cpl-v10.html
|
%license LICENSE NOTICE cpl-v10.html
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Dec 15 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.22.0-10
|
||||||
|
- Add boolean dependencies between plugin and provider subpackages
|
||||||
|
|
||||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.22.0-9
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.22.0-9
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user