commit:     904ccfd6d5510b85ee320b004b1ac36fc5019673
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Sat Jul 26 18:46:08 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Aug 13 11:00:41 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=904ccfd6

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 <AT> pogatzki.net>
Part-of: https://github.com/gentoo/gentoo/pull/43318
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/junit5.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/junit5.eclass b/eclass/junit5.eclass
index 4fb04894e963..d031e521e1ff 100755
--- a/eclass/junit5.eclass
+++ b/eclass/junit5.eclass
@@ -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

Reply via email to