junit5.eclass: add '--build-only' to java-pkg_getjars

There were QA complaints about junit-5 not found with a slot in DEPEND.

Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Part-of: https://github.com/gentoo/gentoo/pull/43318
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Volkmar W. Pogatzki
2025-07-26 20:46:08 +02:00
committed by Sam James
parent 392965e1c9
commit 904ccfd6d5

View File

@@ -152,7 +152,7 @@ ejunit5() {
fi
local junit="junit-5"
local cp=$(java-pkg_getjars --with-dependencies ${junit}${pkgs})
local cp=$(java-pkg_getjars --build-only --with-dependencies ${junit}${pkgs})
if [[ ${1} = -cp || ${1} = -classpath ]]; then
cp="${2}:${cp}"
shift 2