Thanks to Yuan Liao <
[email protected]> for providing this excellent
work. Copied from
https://github.com/Leo3418/junit-5-ebuild-repo
Signed-off-by: Volkmar W. Pogatzki <
[email protected]>
---
eclass/java-pkg-junit-5.eclass | 500 +++++++++++++++++++++++++++++++++
1 file changed, 500 insertions(+)
create mode 100755 eclass/java-pkg-junit-5.eclass
diff --git a/eclass/java-pkg-junit-5.eclass b/eclass/java-pkg-junit-5.eclass new file mode 100755
index 000000000000..cd3101f3eccd
--- /dev/null
+++ b/eclass/java-pkg-junit-5.eclass
@@ -0,0 +1,500 @@
+# Copyright 2022-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# @ECLASS: java-pkg-junit-5.eclass
+# @MAINTAINER:
+# Yuan Liao <
[email protected]>
+# @AUTHOR:
+# Yuan Liao <
[email protected]>
+# @SUPPORTED_EAPIS: 8
+# @BLURB: Experimental eclass to add support for testing on the JUnit Platform +# @DESCRIPTION:
+# This eclass runs tests on the JUnit Platform (which is a JUnit 5 sub-project)
+# during the src_test phase. It is an experimental eclass whose code should +# eventually be merged into java-utils-2.eclass and/or java-pkg-simple.eclass +# when it is mature.
+
+if [[ ! ${_