diff --git a/0001-Drop-transitive-requirement-on-apiguardian.patch b/0001-Drop-transitive-requirement-on-apiguardian.patch new file mode 100644 index 0000000..7b36d31 --- /dev/null +++ b/0001-Drop-transitive-requirement-on-apiguardian.patch @@ -0,0 +1,165 @@ +From 58cb1677c9e0f1bb77b66f5e304ba695678d510e Mon Sep 17 00:00:00 2001 +From: Marian Koncek +Date: Mon, 27 Feb 2023 14:39:29 +0100 +Subject: [PATCH 1/2] Drop transitive requirement on apiguardian + +--- + .../src/module/org.junit.jupiter.api/module-info.java | 2 +- + .../module/org.junit.jupiter.migrationsupport/module-info.java | 2 +- + .../src/module/org.junit.jupiter.params/module-info.java | 2 +- + .../src/module/org.junit.platform.commons/module-info.java | 2 +- + .../src/module/org.junit.platform.engine/module-info.java | 2 +- + .../src/module/org.junit.platform.launcher/module-info.java | 2 +- + .../src/module/org.junit.platform.reporting/module-info.java | 2 +- + .../src/module/org.junit.platform.runner/module-info.java | 2 +- + .../src/module/org.junit.platform.suite.api/module-info.java | 2 +- + .../module/org.junit.platform.suite.commons/module-info.java | 2 +- + .../src/module/org.junit.platform.testkit/module-info.java | 2 +- + 11 files changed, 11 insertions(+), 11 deletions(-) + +diff --git a/junit-jupiter-api/src/module/org.junit.jupiter.api/module-info.java b/junit-jupiter-api/src/module/org.junit.jupiter.api/module-info.java +index b6856c7..25a1523 100644 +--- a/junit-jupiter-api/src/module/org.junit.jupiter.api/module-info.java ++++ b/junit-jupiter-api/src/module/org.junit.jupiter.api/module-info.java +@@ -12,7 +12,7 @@ + * Defines JUnit Jupiter API for writing tests. + */ + module org.junit.jupiter.api { +- requires static transitive org.apiguardian.api; ++ requires static org.apiguardian.api; + requires transitive org.junit.platform.commons; + requires transitive org.opentest4j; + +diff --git a/junit-jupiter-migrationsupport/src/module/org.junit.jupiter.migrationsupport/module-info.java b/junit-jupiter-migrationsupport/src/module/org.junit.jupiter.migrationsupport/module-info.java +index 3ace009..25a86fa 100644 +--- a/junit-jupiter-migrationsupport/src/module/org.junit.jupiter.migrationsupport/module-info.java ++++ b/junit-jupiter-migrationsupport/src/module/org.junit.jupiter.migrationsupport/module-info.java +@@ -15,7 +15,7 @@ + */ + module org.junit.jupiter.migrationsupport { + requires transitive junit; // 4 +- requires static transitive org.apiguardian.api; ++ requires static org.apiguardian.api; + requires transitive org.junit.jupiter.api; + requires org.junit.platform.commons; + +diff --git a/junit-jupiter-params/src/module/org.junit.jupiter.params/module-info.java b/junit-jupiter-params/src/module/org.junit.jupiter.params/module-info.java +index 7f3ea05..572e8ed 100644 +--- a/junit-jupiter-params/src/module/org.junit.jupiter.params/module-info.java ++++ b/junit-jupiter-params/src/module/org.junit.jupiter.params/module-info.java +@@ -14,7 +14,7 @@ + * @since 5.0 + */ + module org.junit.jupiter.params { +- requires static transitive org.apiguardian.api; ++ requires static org.apiguardian.api; + requires transitive org.junit.jupiter.api; + requires transitive org.junit.platform.commons; + +diff --git a/junit-platform-commons/src/module/org.junit.platform.commons/module-info.java b/junit-platform-commons/src/module/org.junit.platform.commons/module-info.java +index f33ffd3..c25315a 100644 +--- a/junit-platform-commons/src/module/org.junit.platform.commons/module-info.java ++++ b/junit-platform-commons/src/module/org.junit.platform.commons/module-info.java +@@ -16,7 +16,7 @@ + module org.junit.platform.commons { + requires java.logging; + requires java.management; // needed by RuntimeUtils to determine input arguments +- requires static transitive org.apiguardian.api; ++ requires static org.apiguardian.api; + + exports org.junit.platform.commons; + exports org.junit.platform.commons.annotation; +diff --git a/junit-platform-engine/src/module/org.junit.platform.engine/module-info.java b/junit-platform-engine/src/module/org.junit.platform.engine/module-info.java +index 0b6336c..6931626 100644 +--- a/junit-platform-engine/src/module/org.junit.platform.engine/module-info.java ++++ b/junit-platform-engine/src/module/org.junit.platform.engine/module-info.java +@@ -17,7 +17,7 @@ + * @since 1.0 + */ + module org.junit.platform.engine { +- requires static transitive org.apiguardian.api; ++ requires static org.apiguardian.api; + requires transitive org.junit.platform.commons; + requires transitive org.opentest4j; + +diff --git a/junit-platform-launcher/src/module/org.junit.platform.launcher/module-info.java b/junit-platform-launcher/src/module/org.junit.platform.launcher/module-info.java +index 9501caf..c2fef28 100644 +--- a/junit-platform-launcher/src/module/org.junit.platform.launcher/module-info.java ++++ b/junit-platform-launcher/src/module/org.junit.platform.launcher/module-info.java +@@ -21,7 +21,7 @@ + */ + module org.junit.platform.launcher { + requires transitive java.logging; +- requires static transitive org.apiguardian.api; ++ requires static org.apiguardian.api; + requires transitive org.junit.platform.commons; + requires transitive org.junit.platform.engine; + +diff --git a/junit-platform-reporting/src/module/org.junit.platform.reporting/module-info.java b/junit-platform-reporting/src/module/org.junit.platform.reporting/module-info.java +index 66c7494..2a6acd7 100644 +--- a/junit-platform-reporting/src/module/org.junit.platform.reporting/module-info.java ++++ b/junit-platform-reporting/src/module/org.junit.platform.reporting/module-info.java +@@ -15,7 +15,7 @@ + */ + module org.junit.platform.reporting { + requires java.xml; +- requires static transitive org.apiguardian.api; ++ requires static org.apiguardian.api; + requires org.junit.platform.commons; + requires transitive org.junit.platform.engine; + requires transitive org.junit.platform.launcher; +diff --git a/junit-platform-runner/src/module/org.junit.platform.runner/module-info.java b/junit-platform-runner/src/module/org.junit.platform.runner/module-info.java +index 47edeb1..4313c64 100644 +--- a/junit-platform-runner/src/module/org.junit.platform.runner/module-info.java ++++ b/junit-platform-runner/src/module/org.junit.platform.runner/module-info.java +@@ -16,7 +16,7 @@ + */ + module org.junit.platform.runner { + requires transitive junit; // 4 +- requires static transitive org.apiguardian.api; ++ requires static org.apiguardian.api; + requires transitive org.junit.platform.launcher; + requires transitive org.junit.platform.suite.api; + requires org.junit.platform.suite.commons; +diff --git a/junit-platform-suite-api/src/module/org.junit.platform.suite.api/module-info.java b/junit-platform-suite-api/src/module/org.junit.platform.suite.api/module-info.java +index 9af8dae..cf50c08 100644 +--- a/junit-platform-suite-api/src/module/org.junit.platform.suite.api/module-info.java ++++ b/junit-platform-suite-api/src/module/org.junit.platform.suite.api/module-info.java +@@ -14,7 +14,7 @@ + * @since 1.0 + */ + module org.junit.platform.suite.api { +- requires static transitive org.apiguardian.api; ++ requires static org.apiguardian.api; + requires transitive org.junit.platform.commons; + + exports org.junit.platform.suite.api; +diff --git a/junit-platform-suite-commons/src/module/org.junit.platform.suite.commons/module-info.java b/junit-platform-suite-commons/src/module/org.junit.platform.suite.commons/module-info.java +index b810efc..ccb6756 100644 +--- a/junit-platform-suite-commons/src/module/org.junit.platform.suite.commons/module-info.java ++++ b/junit-platform-suite-commons/src/module/org.junit.platform.suite.commons/module-info.java +@@ -14,7 +14,7 @@ + * @since 1.8 + */ + module org.junit.platform.suite.commons { +- requires static transitive org.apiguardian.api; ++ requires static org.apiguardian.api; + requires org.junit.platform.suite.api; + requires org.junit.platform.commons; + requires org.junit.platform.engine; +diff --git a/junit-platform-testkit/src/module/org.junit.platform.testkit/module-info.java b/junit-platform-testkit/src/module/org.junit.platform.testkit/module-info.java +index c0ae318..0d4cf42 100644 +--- a/junit-platform-testkit/src/module/org.junit.platform.testkit/module-info.java ++++ b/junit-platform-testkit/src/module/org.junit.platform.testkit/module-info.java +@@ -15,7 +15,7 @@ + * @uses org.junit.platform.engine.TestEngine + */ + module org.junit.platform.testkit { +- requires static transitive org.apiguardian.api; ++ requires static org.apiguardian.api; + requires transitive org.assertj.core; + requires org.junit.platform.commons; + requires transitive org.junit.platform.engine; +-- +2.39.2 + diff --git a/0002-Add-missing-module-static-requires.patch b/0002-Add-missing-module-static-requires.patch new file mode 100644 index 0000000..db09234 --- /dev/null +++ b/0002-Add-missing-module-static-requires.patch @@ -0,0 +1,24 @@ +From 2f5ad4483784985a299e9ed28429bb52da21564d Mon Sep 17 00:00:00 2001 +From: Mikolaj Izdebski +Date: Mon, 27 Mar 2023 16:55:13 +0200 +Subject: [PATCH 2/2] Add missing module static requires + +--- + .../src/module/org.junit.jupiter.params/module-info.java | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/junit-jupiter-params/src/module/org.junit.jupiter.params/module-info.java b/junit-jupiter-params/src/module/org.junit.jupiter.params/module-info.java +index 572e8ed..90a3c3b 100644 +--- a/junit-jupiter-params/src/module/org.junit.jupiter.params/module-info.java ++++ b/junit-jupiter-params/src/module/org.junit.jupiter.params/module-info.java +@@ -15,6 +15,7 @@ + */ + module org.junit.jupiter.params { + requires static org.apiguardian.api; ++ requires static univocity.parsers; + requires transitive org.junit.jupiter.api; + requires transitive org.junit.platform.commons; + +-- +2.39.2 + diff --git a/aggregator.pom b/aggregator.pom index 8e7b69b..52668af 100644 --- a/aggregator.pom +++ b/aggregator.pom @@ -1,11 +1,22 @@ - + + 4.0.0 org.fedoraproject.xmvn.junit5 aggregator - 1.0.0 + any pom + + UTF-8 + junit-bom + junit-jupiter + junit-jupiter-api + junit-jupiter-engine + junit-jupiter-migrationsupport + junit-jupiter-params + junit-platform-commons junit-platform-console junit-platform-console-standalone junit-platform-engine @@ -14,21 +25,47 @@ junit-platform-runner junit-platform-suite-api junit-platform-suite-commons - junit-jupiter - junit-jupiter-engine - junit-jupiter-migrationsupport - junit-jupiter-params + junit-platform-testkit junit-vintage-engine + org.apache.maven.plugins maven-compiler-plugin - - 1.8 - 1.8 - + + + default-compile + + compile + + + 8 + + false + + **/module-info.java + + + + + module-info + + compile + + + 9 + + **/module-info.java + + + + maven-jar-plugin diff --git a/junit-bom-5.8.2.pom b/junit-bom-5.10.2.pom similarity index 88% rename from junit-bom-5.8.2.pom rename to junit-bom-5.10.2.pom index 13cf5fb..4311203 100644 --- a/junit-bom-5.8.2.pom +++ b/junit-bom-5.10.2.pom @@ -9,7 +9,7 @@ 4.0.0 org.junit junit-bom - 5.8.2 + 5.10.2 pom JUnit 5 (Bill of Materials) This Bill of Materials POM can be used to ease dependency management when referencing multiple JUnit artifacts using Gradle or Maven. @@ -67,92 +67,92 @@ org.junit.jupiter junit-jupiter - 5.8.2 + 5.10.2 org.junit.jupiter junit-jupiter-api - 5.8.2 + 5.10.2 org.junit.jupiter junit-jupiter-engine - 5.8.2 + 5.10.2 org.junit.jupiter junit-jupiter-migrationsupport - 5.8.2 + 5.10.2 org.junit.jupiter junit-jupiter-params - 5.8.2 + 5.10.2 org.junit.platform junit-platform-commons - 1.8.2 + 1.10.2 org.junit.platform junit-platform-console - 1.8.2 + 1.10.2 org.junit.platform junit-platform-engine - 1.8.2 + 1.10.2 org.junit.platform junit-platform-jfr - 1.8.2 + 1.10.2 org.junit.platform junit-platform-launcher - 1.8.2 + 1.10.2 org.junit.platform junit-platform-reporting - 1.8.2 + 1.10.2 org.junit.platform junit-platform-runner - 1.8.2 + 1.10.2 org.junit.platform junit-platform-suite - 1.8.2 + 1.10.2 org.junit.platform junit-platform-suite-api - 1.8.2 + 1.10.2 org.junit.platform junit-platform-suite-commons - 1.8.2 + 1.10.2 org.junit.platform junit-platform-suite-engine - 1.8.2 + 1.10.2 org.junit.platform junit-platform-testkit - 1.8.2 + 1.10.2 org.junit.vintage junit-vintage-engine - 5.8.2 + 5.10.2 diff --git a/junit-jupiter-5.8.2.pom b/junit-jupiter-5.10.2.pom similarity index 95% rename from junit-jupiter-5.8.2.pom rename to junit-jupiter-5.10.2.pom index 45aa1b4..89341d1 100644 --- a/junit-jupiter-5.8.2.pom +++ b/junit-jupiter-5.10.2.pom @@ -9,7 +9,7 @@ 4.0.0 org.junit.jupiter junit-jupiter - 5.8.2 + 5.10.2 JUnit Jupiter (Aggregator) Module "junit-jupiter" of JUnit 5. https://junit.org/junit5/ @@ -66,7 +66,7 @@ org.junit junit-bom - 5.8.2 + 5.10.2 pom import @@ -76,19 +76,19 @@ org.junit.jupiter junit-jupiter-api - 5.8.2 + 5.10.2 compile org.junit.jupiter junit-jupiter-params - 5.8.2 + 5.10.2 compile org.junit.jupiter junit-jupiter-engine - 5.8.2 + 5.10.2 runtime diff --git a/junit-jupiter-api-5.8.2.pom b/junit-jupiter-api-5.10.2.pom similarity index 96% rename from junit-jupiter-api-5.8.2.pom rename to junit-jupiter-api-5.10.2.pom index ba3ad92..2fe9870 100644 --- a/junit-jupiter-api-5.8.2.pom +++ b/junit-jupiter-api-5.10.2.pom @@ -8,7 +8,7 @@ 4.0.0 org.junit.jupiter junit-jupiter-api - 5.8.2 + 5.10.2 JUnit Jupiter API Module "junit-jupiter-api" of JUnit 5. https://junit.org/junit5/ @@ -65,7 +65,7 @@ org.junit junit-bom - 5.8.2 + 5.10.2 pom import @@ -75,13 +75,13 @@ org.opentest4j opentest4j - 1.2.0 + 1.3.0 compile org.junit.platform junit-platform-commons - 1.8.2 + 1.10.2 compile diff --git a/junit-jupiter-engine-5.8.2.pom b/junit-jupiter-engine-5.10.2.pom similarity index 96% rename from junit-jupiter-engine-5.8.2.pom rename to junit-jupiter-engine-5.10.2.pom index 8b1fce7..de8b947 100644 --- a/junit-jupiter-engine-5.8.2.pom +++ b/junit-jupiter-engine-5.10.2.pom @@ -8,7 +8,7 @@ 4.0.0 org.junit.jupiter junit-jupiter-engine - 5.8.2 + 5.10.2 JUnit Jupiter Engine Module "junit-jupiter-engine" of JUnit 5. https://junit.org/junit5/ @@ -65,7 +65,7 @@ org.junit junit-bom - 5.8.2 + 5.10.2 pom import @@ -75,13 +75,13 @@ org.junit.platform junit-platform-engine - 1.8.2 + 1.10.2 compile org.junit.jupiter junit-jupiter-api - 5.8.2 + 5.10.2 compile diff --git a/junit-jupiter-migrationsupport-5.8.2.pom b/junit-jupiter-migrationsupport-5.10.2.pom similarity index 97% rename from junit-jupiter-migrationsupport-5.8.2.pom rename to junit-jupiter-migrationsupport-5.10.2.pom index afc21fb..f294717 100644 --- a/junit-jupiter-migrationsupport-5.8.2.pom +++ b/junit-jupiter-migrationsupport-5.10.2.pom @@ -9,7 +9,7 @@ 4.0.0 org.junit.jupiter junit-jupiter-migrationsupport - 5.8.2 + 5.10.2 JUnit Jupiter Migration Support Module "junit-jupiter-migrationsupport" of JUnit 5. https://junit.org/junit5/ @@ -66,7 +66,7 @@ org.junit junit-bom - 5.8.2 + 5.10.2 pom import @@ -82,7 +82,7 @@ org.junit.jupiter junit-jupiter-api - 5.8.2 + 5.10.2 compile diff --git a/junit-jupiter-params-5.8.2.pom b/junit-jupiter-params-5.10.2.pom similarity index 96% rename from junit-jupiter-params-5.8.2.pom rename to junit-jupiter-params-5.10.2.pom index d982997..2ce6bf9 100644 --- a/junit-jupiter-params-5.8.2.pom +++ b/junit-jupiter-params-5.10.2.pom @@ -8,7 +8,7 @@ 4.0.0 org.junit.jupiter junit-jupiter-params - 5.8.2 + 5.10.2 JUnit Jupiter Params Module "junit-jupiter-params" of JUnit 5. https://junit.org/junit5/ @@ -65,7 +65,7 @@ org.junit junit-bom - 5.8.2 + 5.10.2 pom import @@ -75,7 +75,7 @@ org.junit.jupiter junit-jupiter-api - 5.8.2 + 5.10.2 compile diff --git a/junit-platform-commons-1.8.2.pom b/junit-platform-commons-1.10.2.pom similarity index 97% rename from junit-platform-commons-1.8.2.pom rename to junit-platform-commons-1.10.2.pom index c8ca419..49d0aa0 100644 --- a/junit-platform-commons-1.8.2.pom +++ b/junit-platform-commons-1.10.2.pom @@ -9,7 +9,7 @@ 4.0.0 org.junit.platform junit-platform-commons - 1.8.2 + 1.10.2 JUnit Platform Commons Module "junit-platform-commons" of JUnit 5. https://junit.org/junit5/ @@ -66,7 +66,7 @@ org.junit junit-bom - 5.8.2 + 5.10.2 pom import diff --git a/junit-platform-console-1.8.2.pom b/junit-platform-console-1.10.2.pom similarity index 96% rename from junit-platform-console-1.8.2.pom rename to junit-platform-console-1.10.2.pom index cc01627..a94a5f5 100644 --- a/junit-platform-console-1.8.2.pom +++ b/junit-platform-console-1.10.2.pom @@ -9,7 +9,7 @@ 4.0.0 org.junit.platform junit-platform-console - 1.8.2 + 1.10.2 JUnit Platform Console Module "junit-platform-console" of JUnit 5. https://junit.org/junit5/ @@ -66,7 +66,7 @@ org.junit junit-bom - 5.8.2 + 5.10.2 pom import @@ -76,7 +76,7 @@ org.junit.platform junit-platform-reporting - 1.8.2 + 1.10.2 compile diff --git a/junit-platform-console-standalone-1.8.2.pom b/junit-platform-console-standalone-1.10.2.pom similarity index 98% rename from junit-platform-console-standalone-1.8.2.pom rename to junit-platform-console-standalone-1.10.2.pom index b6ccf1b..549ba8a 100644 --- a/junit-platform-console-standalone-1.8.2.pom +++ b/junit-platform-console-standalone-1.10.2.pom @@ -9,7 +9,7 @@ 4.0.0 org.junit.platform junit-platform-console-standalone - 1.8.2 + 1.10.2 JUnit Platform Console Standalone Module "junit-platform-console-standalone" of JUnit 5. https://junit.org/junit5/ diff --git a/junit-platform-engine-1.8.2.pom b/junit-platform-engine-1.10.2.pom similarity index 96% rename from junit-platform-engine-1.8.2.pom rename to junit-platform-engine-1.10.2.pom index a94e0af..37cc6b2 100644 --- a/junit-platform-engine-1.8.2.pom +++ b/junit-platform-engine-1.10.2.pom @@ -9,7 +9,7 @@ 4.0.0 org.junit.platform junit-platform-engine - 1.8.2 + 1.10.2 JUnit Platform Engine API Module "junit-platform-engine" of JUnit 5. https://junit.org/junit5/ @@ -66,7 +66,7 @@ org.junit junit-bom - 5.8.2 + 5.10.2 pom import @@ -76,13 +76,13 @@ org.opentest4j opentest4j - 1.2.0 + 1.3.0 compile org.junit.platform junit-platform-commons - 1.8.2 + 1.10.2 compile diff --git a/junit-platform-launcher-1.8.2.pom b/junit-platform-launcher-1.10.2.pom similarity index 96% rename from junit-platform-launcher-1.8.2.pom rename to junit-platform-launcher-1.10.2.pom index 1a7317f..d9e0c45 100644 --- a/junit-platform-launcher-1.8.2.pom +++ b/junit-platform-launcher-1.10.2.pom @@ -9,7 +9,7 @@ 4.0.0 org.junit.platform junit-platform-launcher - 1.8.2 + 1.10.2 JUnit Platform Launcher Module "junit-platform-launcher" of JUnit 5. https://junit.org/junit5/ @@ -66,7 +66,7 @@ org.junit junit-bom - 5.8.2 + 5.10.2 pom import @@ -76,7 +76,7 @@ org.junit.platform junit-platform-engine - 1.8.2 + 1.10.2 compile diff --git a/junit-platform-reporting-1.8.2.pom b/junit-platform-reporting-1.10.2.pom similarity index 96% rename from junit-platform-reporting-1.8.2.pom rename to junit-platform-reporting-1.10.2.pom index a4bc36a..a96ab98 100644 --- a/junit-platform-reporting-1.8.2.pom +++ b/junit-platform-reporting-1.10.2.pom @@ -9,7 +9,7 @@ 4.0.0 org.junit.platform junit-platform-reporting - 1.8.2 + 1.10.2 JUnit Platform Reporting Module "junit-platform-reporting" of JUnit 5. https://junit.org/junit5/ @@ -66,7 +66,7 @@ org.junit junit-bom - 5.8.2 + 5.10.2 pom import @@ -76,7 +76,7 @@ org.junit.platform junit-platform-launcher - 1.8.2 + 1.10.2 compile diff --git a/junit-platform-runner-1.8.2.pom b/junit-platform-runner-1.10.2.pom similarity index 95% rename from junit-platform-runner-1.8.2.pom rename to junit-platform-runner-1.10.2.pom index 961fae0..63305af 100644 --- a/junit-platform-runner-1.8.2.pom +++ b/junit-platform-runner-1.10.2.pom @@ -9,7 +9,7 @@ 4.0.0 org.junit.platform junit-platform-runner - 1.8.2 + 1.10.2 JUnit Platform Runner Module "junit-platform-runner" of JUnit 5. https://junit.org/junit5/ @@ -66,7 +66,7 @@ org.junit junit-bom - 5.8.2 + 5.10.2 pom import @@ -82,13 +82,13 @@ org.junit.platform junit-platform-launcher - 1.8.2 + 1.10.2 compile org.junit.platform junit-platform-suite-api - 1.8.2 + 1.10.2 compile @@ -100,7 +100,7 @@ org.junit.platform junit-platform-suite-commons - 1.8.2 + 1.10.2 runtime diff --git a/junit-platform-suite-api-1.8.2.pom b/junit-platform-suite-api-1.10.2.pom similarity index 96% rename from junit-platform-suite-api-1.8.2.pom rename to junit-platform-suite-api-1.10.2.pom index d56225d..59aa928 100644 --- a/junit-platform-suite-api-1.8.2.pom +++ b/junit-platform-suite-api-1.10.2.pom @@ -9,7 +9,7 @@ 4.0.0 org.junit.platform junit-platform-suite-api - 1.8.2 + 1.10.2 JUnit Platform Suite API Module "junit-platform-suite-api" of JUnit 5. https://junit.org/junit5/ @@ -66,7 +66,7 @@ org.junit junit-bom - 5.8.2 + 5.10.2 pom import @@ -76,7 +76,7 @@ org.junit.platform junit-platform-commons - 1.8.2 + 1.10.2 compile diff --git a/junit-platform-suite-commons-1.8.2.pom b/junit-platform-suite-commons-1.10.2.pom similarity index 95% rename from junit-platform-suite-commons-1.8.2.pom rename to junit-platform-suite-commons-1.10.2.pom index 967a627..c8bc8f7 100644 --- a/junit-platform-suite-commons-1.8.2.pom +++ b/junit-platform-suite-commons-1.10.2.pom @@ -9,7 +9,7 @@ 4.0.0 org.junit.platform junit-platform-suite-commons - 1.8.2 + 1.10.2 JUnit Platform Suite Commons Module "junit-platform-suite-commons" of JUnit 5. https://junit.org/junit5/ @@ -66,7 +66,7 @@ org.junit junit-bom - 5.8.2 + 5.10.2 pom import @@ -76,7 +76,7 @@ org.junit.platform junit-platform-launcher - 1.8.2 + 1.10.2 compile @@ -88,13 +88,13 @@ org.junit.platform junit-platform-engine - 1.8.2 + 1.10.2 runtime org.junit.platform junit-platform-suite-api - 1.8.2 + 1.10.2 runtime diff --git a/junit-platform-testkit-1.10.2.pom b/junit-platform-testkit-1.10.2.pom new file mode 100644 index 0000000..ebf1011 --- /dev/null +++ b/junit-platform-testkit-1.10.2.pom @@ -0,0 +1,101 @@ + + + + + + + + 4.0.0 + org.junit.platform + junit-platform-testkit + 1.10.2 + JUnit Platform Test Kit + Module "junit-platform-testkit" of JUnit 5. + https://junit.org/junit5/ + + + Eclipse Public License v2.0 + https://www.eclipse.org/legal/epl-v20.html + + + + + bechte + Stefan Bechtold + stefan.bechtold@me.com + + + jlink + Johannes Link + business@johanneslink.net + + + marcphilipp + Marc Philipp + mail@marcphilipp.de + + + mmerdes + Matthias Merdes + matthias.merdes@heidelpay.com + + + sbrannen + Sam Brannen + sam@sambrannen.com + + + sormuras + Christian Stein + sormuras@gmail.com + + + juliette-derancourt + Juliette de Rancourt + derancourt.juliette@gmail.com + + + + scm:git:git://github.com/junit-team/junit5.git + scm:git:git://github.com/junit-team/junit5.git + https://github.com/junit-team/junit5 + + + + + org.junit + junit-bom + 5.10.2 + pom + import + + + + + + org.assertj + assertj-core + 3.24.2 + compile + + + org.opentest4j + opentest4j + 1.3.0 + compile + + + org.junit.platform + junit-platform-launcher + 1.10.2 + compile + + + org.apiguardian + apiguardian-api + 1.1.2 + compile + + + diff --git a/junit-vintage-engine-5.8.2.pom b/junit-vintage-engine-5.10.2.pom similarity index 97% rename from junit-vintage-engine-5.8.2.pom rename to junit-vintage-engine-5.10.2.pom index 82e2737..d5d19eb 100644 --- a/junit-vintage-engine-5.8.2.pom +++ b/junit-vintage-engine-5.10.2.pom @@ -9,7 +9,7 @@ 4.0.0 org.junit.vintage junit-vintage-engine - 5.8.2 + 5.10.2 JUnit Vintage Engine Module "junit-vintage-engine" of JUnit 5. https://junit.org/junit5/ @@ -66,7 +66,7 @@ org.junit junit-bom - 5.8.2 + 5.10.2 pom import @@ -76,7 +76,7 @@ org.junit.platform junit-platform-engine - 1.8.2 + 1.10.2 compile diff --git a/junit5-5.10.2.tar.gz b/junit5-5.10.2.tar.gz new file mode 100644 index 0000000..074dc8e --- /dev/null +++ b/junit5-5.10.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3648f19004831a98b72950aa8954218a337e41b55212eacbc2e5067b4eff58c1 +size 2942035 diff --git a/junit5-5.8.2.tar.gz b/junit5-5.8.2.tar.gz deleted file mode 100644 index 6280c7e..0000000 --- a/junit5-5.8.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cc37632dc36c4eebb9ba8dff07a8a6ced35472be48bf0d9874ecdf7b4bea7fb4 -size 2808680 diff --git a/junit5-build.tar.xz b/junit5-build.tar.xz index a645891..76c6648 100644 --- a/junit5-build.tar.xz +++ b/junit5-build.tar.xz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:134531cc022eda9ccf4a73f7aad47ea7468e78cd1a09e8fd3e9b80072001c3ac -size 2056 +oid sha256:0f3a6590b022f67bb1a5047ba8afbf6f731b43023fc63a54f3912a34dd3421ad +size 2128 diff --git a/junit5.spec b/junit5.spec index deee112..4c11db1 100644 --- a/junit5.spec +++ b/junit5.spec @@ -22,11 +22,11 @@ %else %bcond_with bootstrap %endif -%global platform_version 1.8.2 +%global platform_version 1.10.2 %global jupiter_version %{version} %global vintage_version %{version} %global base_name junit5 -Version: 5.8.2 +Version: 5.10.2 Release: 0 License: EPL-2.0 Group: Development/Libraries/Java @@ -44,7 +44,8 @@ Source205: https://repo1.maven.org/maven2/org/junit/platform/junit-platform Source206: https://repo1.maven.org/maven2/org/junit/platform/junit-platform-runner/%{platform_version}/junit-platform-runner-%{platform_version}.pom Source207: https://repo1.maven.org/maven2/org/junit/platform/junit-platform-suite-api/%{platform_version}/junit-platform-suite-api-%{platform_version}.pom Source208: https://repo1.maven.org/maven2/org/junit/platform/junit-platform-reporting/%{platform_version}/junit-platform-reporting-%{platform_version}.pom -Source209: https://repo1.maven.org/maven2/org/junit/platform/junit-platform-suite-commons/%{platform_version}/junit-platform-suite-commons-%{platform_version}.pom +Source209: https://repo1.maven.org/maven2/org/junit/platform/junit-platform-testkit/%{platform_version}/junit-platform-testkit-%{platform_version}.pom +Source210: https://repo1.maven.org/maven2/org/junit/platform/junit-platform-suite-commons/%{platform_version}/junit-platform-suite-commons-%{platform_version}.pom # Jupiter POMs Source300: https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter/%{jupiter_version}/junit-jupiter-%{jupiter_version}.pom Source301: https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter-api/%{jupiter_version}/junit-jupiter-api-%{jupiter_version}.pom @@ -55,7 +56,8 @@ Source304: https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter-p Source400: https://repo1.maven.org/maven2/org/junit/vintage/junit-vintage-engine/%{vintage_version}/junit-vintage-engine-%{vintage_version}.pom # BOM POM Source500: https://repo1.maven.org/maven2/org/junit/junit-bom/%{version}/junit-bom-%{version}.pom -Patch0: unreported-exception.patch +Patch1: 0001-Drop-transitive-requirement-on-apiguardian.patch +Patch2: 0002-Add-missing-module-static-requires.patch BuildRequires: apiguardian BuildRequires: fdupes BuildRequires: opentest4j @@ -73,9 +75,11 @@ BuildRequires: %{base_name}-minimal BuildRequires: asciidoc BuildRequires: maven-local BuildRequires: mvn(com.univocity:univocity-parsers) -BuildRequires: mvn(info.picocli:picocli) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) +BuildRequires: mvn(org.apiguardian:apiguardian-api) +BuildRequires: mvn(org.assertj:assertj-core) +BuildRequires: mvn(org.opentest4j:opentest4j) %endif %description @@ -106,7 +110,8 @@ JUnit 5 User Guide. %prep %setup -q -n %{base_name}-r%{version} -a1 -%patch -P 0 -p1 +%patch -P 1 -p1 +%patch -P 2 -p1 find -name \*.jar -delete cp -p %{SOURCE100} pom.xml @@ -118,7 +123,8 @@ cp -p %{SOURCE205} junit-platform-launcher/pom.xml cp -p %{SOURCE206} junit-platform-runner/pom.xml cp -p %{SOURCE207} junit-platform-suite-api/pom.xml cp -p %{SOURCE208} junit-platform-reporting/pom.xml -cp -p %{SOURCE209} junit-platform-suite-commons/pom.xml +cp -p %{SOURCE209} junit-platform-testkit/pom.xml +cp -p %{SOURCE210} junit-platform-suite-commons/pom.xml cp -p %{SOURCE300} junit-jupiter/pom.xml cp -p %{SOURCE301} junit-jupiter-api/pom.xml cp -p %{SOURCE302} junit-jupiter-engine/pom.xml @@ -128,21 +134,34 @@ cp -p %{SOURCE400} junit-vintage-engine/pom.xml cp -p %{SOURCE500} junit-bom/pom.xml for pom in $(find -mindepth 2 -name pom.xml | grep -v tests/); do + module=$(dirname $pom) + if [ -d ${module}/src/module ]; then + mkdir -p ${module}/src/main/java + mv ${module}/src/module/*/module-info.java ${module}/src/main/java/ + fi # Set parent to aggregator - %pom_xpath_inject pom:project "org.fedoraproject.xmvn.junit5aggregator1.0.0" $pom + %pom_add_parent org.fedoraproject.xmvn.junit5:aggregator:any $pom # OSGi BSN bsn=$(sed 's|/pom.xml$||;s|.*/|org.|;s|-|.|g' <<<"$pom") %pom_xpath_inject pom:project "${bsn}" $pom # Incorrect scope - API guardian is just annotation, needed only during compilation %pom_xpath_set -f "pom:dependency[pom:artifactId='apiguardian-api']/pom:scope" provided $pom - sed -i s/runtime/compile/ $pom + %pom_xpath_set -f "pom:dependency[pom:scope='runtime']/pom:scope" compile $pom done %pom_remove_parent junit-bom # Add deps which are shaded by upstream and therefore not present in POMs. -%pom_add_dep info.picocli:picocli:4.0.4 junit-platform-console -%pom_add_dep com.univocity:univocity-parsers:2.9.1 junit-jupiter-params +%pom_add_dep net.sf.jopt-simple:jopt-simple:5.0.4 junit-platform-console +%pom_add_dep com.univocity:univocity-parsers:2.5.4 junit-jupiter-params + +# Disable the console modules +%pom_disable_module junit-platform-console +%pom_disable_module junit-platform-console-standalone +%pom_disable_module junit-platform-reporting +# Disable the modules built in -minimal package +%pom_disable_module junit-platform-commons +%pom_disable_module junit-jupiter-api %{mvn_package} :junit-bom bom %{mvn_package} :aggregator __noinstall @@ -179,7 +198,6 @@ done %else %mvn_install -%jpackage_script org/junit/platform/console/ConsoleLauncher "" "" junit5:junit:opentest4j:picocli %{name} true %fdupes -s documentation/src/docs/ %endif @@ -191,8 +209,6 @@ done %if %{without bootstrap} -%{_bindir}/%{name} - %files bom -f .mfiles-bom %license LICENSE.md LICENSE-notice.md diff --git a/unreported-exception.patch b/unreported-exception.patch deleted file mode 100644 index 089c4ef..0000000 --- a/unreported-exception.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- junit5-r5.8.2/junit-platform-launcher/src/main/java/org/junit/platform/launcher/TestIdentifier.java 2023-10-26 14:17:20.653152124 +0200 -+++ junit5-r5.8.2/junit-platform-launcher/src/main/java/org/junit/platform/launcher/TestIdentifier.java 2023-10-26 14:18:08.740160341 +0200 -@@ -316,7 +316,7 @@ - } - - @SuppressWarnings("unchecked") -- private SerializedForm(ObjectInputStream.GetField fields) throws IOException { -+ private SerializedForm(ObjectInputStream.GetField fields) throws ClassNotFoundException, IOException { - this.uniqueId = (String) fields.get("uniqueId", null); - this.parentId = (String) fields.get("parentId", null); - this.displayName = (String) fields.get("displayName", null);