This is an automated email from the ASF dual-hosted git repository. sjaranowski pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-surefire.git
commit dd707721590b20443cb5aa2395cc736919d18b42 Author: Pabst, Andreas <[email protected]> AuthorDate: Thu Dec 29 18:27:56 2022 +0100 [SUREFIRE-2138] Update JUnit4/JUnit5 versions in docs Update JUnit versions referenced in configuration examples to 4.13.2 and 5.9.1, the respective latest versions --- .../src/site/apt/examples/jpms.apt.vm | 4 +- .../src/site/apt/examples/junit-platform.apt.vm | 52 +++++++++++----------- .../src/site/apt/examples/junit.apt.vm | 2 +- .../src/site/apt/examples/spock.apt.vm | 4 +- .../src/site/apt/examples/testng.apt.vm | 2 +- maven-surefire-plugin/src/site/markdown/docker.md | 2 +- 6 files changed, 33 insertions(+), 33 deletions(-) diff --git a/maven-surefire-plugin/src/site/apt/examples/jpms.apt.vm b/maven-surefire-plugin/src/site/apt/examples/jpms.apt.vm index ce98981b7..f3727a3a6 100644 --- a/maven-surefire-plugin/src/site/apt/examples/jpms.apt.vm +++ b/maven-surefire-plugin/src/site/apt/examples/jpms.apt.vm @@ -108,7 +108,7 @@ module test <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> - <version>4.13</version> + <version>4.13.2</version> <scope>test</scope> <exclusions> <exclusion> @@ -154,7 +154,7 @@ module test demonstrating the Java Modularity (JPMS) in Maven multi-module project. The JDK version must be 9 or higher. The POM contains the dependency - <<<org.junit.jupiter:junit-jupiter-engine:5.6.2>>> which is named module. It activates the internal provider + <<<org.junit.jupiter:junit-jupiter-engine:5.9.1>>> which is named module. It activates the internal provider <<<surefire-junit-platform>>> in the plugin. +---+ diff --git a/maven-surefire-plugin/src/site/apt/examples/junit-platform.apt.vm b/maven-surefire-plugin/src/site/apt/examples/junit-platform.apt.vm index 26e5f1b1c..7e75af80c 100644 --- a/maven-surefire-plugin/src/site/apt/examples/junit-platform.apt.vm +++ b/maven-surefire-plugin/src/site/apt/examples/junit-platform.apt.vm @@ -40,7 +40,7 @@ Using JUnit 5 Platform <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> - <version>5.4.0</version> + <version>5.9.1</version> <scope>test</scope> </dependency> [...] @@ -55,7 +55,7 @@ Using JUnit 5 Platform (e.g., <<<src/test/java>>>). If you want to write and execute JUnit 3 or 4 tests via the JUnit Platform add the Vintage Engine to the - dependencies, which transitively pulls in (and requires) <<<junit:junit:4.12>>>: + dependencies, which transitively pulls in (and requires) <<<junit:junit:4.13.2>>>: +---+ <dependencies> @@ -63,7 +63,7 @@ Using JUnit 5 Platform <dependency> <groupId>org.junit.vintage</groupId> <artifactId>junit-vintage-engine</artifactId> - <version>5.4.0</version> + <version>5.9.1</version> <scope>test</scope> </dependency> [...] @@ -85,7 +85,7 @@ Using JUnit 5 Platform ** How to run only one API - Normally, the developer does not want to access internal classes of JUnit5 engine (e.g. <<<5.4.0>>>). + Normally, the developer does not want to access internal classes of JUnit5 engine (e.g. <<<5.9.1>>>). In the next chapters you can find your way to use the Jupiter or JUnit5 API where the plugin would resolve the engine. *** Jupiter API in test dependencies @@ -100,7 +100,7 @@ Using JUnit 5 Platform <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> - <version>5.4.0</version> + <version>5.9.1</version> <scope>test</scope> </dependency> [...] @@ -125,7 +125,7 @@ Using JUnit 5 Platform In the following example the engine artifact appears in plugin dependencies and the engine is resolved by the plugin and downloaded from a remote repository for plugins. You may want to update the version of engine with fixed bugs in - <<<5.3.2>>> but the API version <<<5.3.0>>> stays intact! + <<<5.9.1>>> but the API version <<<5.9.0>>> stays intact! +---+ <dependencies> @@ -133,7 +133,7 @@ Using JUnit 5 Platform <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> - <version>5.3.0</version> + <version>5.9.0</version> <scope>test</scope> </dependency> [...] @@ -150,7 +150,7 @@ Using JUnit 5 Platform <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> - <version>5.3.2</version> + <version>5.9.1</version> </dependency> </dependencies> </plugin> @@ -172,7 +172,7 @@ Using JUnit 5 Platform <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> - <version>4.13</version> + <version>4.13.2</version> <scope>test</scope> </dependency> [...] @@ -189,7 +189,7 @@ Using JUnit 5 Platform <dependency> <groupId>org.junit.vintage</groupId> <artifactId>junit-vintage-engine</artifactId> - <version>5.4.0</version> + <version>5.9.1</version> </dependency> </dependencies> </plugin> @@ -212,13 +212,13 @@ Using JUnit 5 Platform <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> - <version>5.6.2</version> + <version>5.9.1</version> <scope>test</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> - <version>4.13</version> + <version>4.13.2</version> <scope>test</scope> </dependency> </dependencies> @@ -231,13 +231,13 @@ Using JUnit 5 Platform <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> - <version>5.6.2</version> + <version>5.9.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.vintage</groupId> <artifactId>junit-vintage-engine</artifactId> - <version>5.6.2</version> + <version>5.9.1</version> <scope>test</scope> </dependency> </dependencies> @@ -250,13 +250,13 @@ Using JUnit 5 Platform <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> - <version>5.6.2</version> + <version>5.9.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.vintage</groupId> <artifactId>junit-vintage-engine</artifactId> - <version>5.6.2</version> + <version>5.9.1</version> <scope>test</scope> </dependency> </dependencies> @@ -277,13 +277,13 @@ Using JUnit 5 Platform <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> - <version>5.6.2</version> + <version>5.9.1</version> <scope>test</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> - <version>4.13</version> + <version>4.13.2</version> <scope>test</scope> </dependency> </dependencies> @@ -299,7 +299,7 @@ Using JUnit 5 Platform <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> - <version>5.6.2</version> + <version>5.9.1</version> </dependency> </dependencies> </plugin> @@ -318,13 +318,13 @@ Using JUnit 5 Platform <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> - <version>5.6.2</version> + <version>5.9.1</version> <scope>test</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> - <version>4.13</version> + <version>4.13.2</version> <scope>test</scope> </dependency> </dependencies> @@ -340,7 +340,7 @@ Using JUnit 5 Platform <dependency> <groupId>org.junit.vintage</groupId> <artifactId>junit-vintage-engine</artifactId> - <version>5.6.2</version> + <version>5.9.1</version> </dependency> </dependencies> </plugin> @@ -390,13 +390,13 @@ Using JUnit 5 Platform <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> - <version>5.6.2</version> + <version>5.9.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.platform</groupId> <artifactId>junit-platform-runner</artifactId> - <version>1.6.2</version> + <version>1.9.1</version> <scope>test</scope> </dependency> </dependencies> @@ -413,13 +413,13 @@ Using JUnit 5 Platform <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> - <version>5.8.2</version> + <version>5.9.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.platform</groupId> <artifactId>junit-platform-suite-engine</artifactId> - <version>1.8.2</version> + <version>1.9.1</version> <scope>test</scope> </dependency> </dependencies> diff --git a/maven-surefire-plugin/src/site/apt/examples/junit.apt.vm b/maven-surefire-plugin/src/site/apt/examples/junit.apt.vm index 4352e1cdd..e6788074f 100644 --- a/maven-surefire-plugin/src/site/apt/examples/junit.apt.vm +++ b/maven-surefire-plugin/src/site/apt/examples/junit.apt.vm @@ -38,7 +38,7 @@ Using JUnit <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> - <version>4.11</version> + <version>4.13.2</version> <scope>test</scope> </dependency> [...] diff --git a/maven-surefire-plugin/src/site/apt/examples/spock.apt.vm b/maven-surefire-plugin/src/site/apt/examples/spock.apt.vm index 09e6b2c28..dca2ca156 100644 --- a/maven-surefire-plugin/src/site/apt/examples/spock.apt.vm +++ b/maven-surefire-plugin/src/site/apt/examples/spock.apt.vm @@ -82,7 +82,7 @@ class CalculatorTest extends Specification <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> - <version>5.6.2</version> + <version>5.9.1</version> <scope>test</scope> </dependency> [...] @@ -140,7 +140,7 @@ class CalculatorTest extends Specification <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> - <version>5.6.2</version> + <version>5.9.1</version> <scope>test</scope> </dependency> [...] diff --git a/maven-surefire-plugin/src/site/apt/examples/testng.apt.vm b/maven-surefire-plugin/src/site/apt/examples/testng.apt.vm index 5b895bb23..e97427254 100644 --- a/maven-surefire-plugin/src/site/apt/examples/testng.apt.vm +++ b/maven-surefire-plugin/src/site/apt/examples/testng.apt.vm @@ -446,7 +446,7 @@ Using TestNG <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> - <version>4.10</version> + <version>4.13.2</version> <scope>test</scope> </dependency> [...] diff --git a/maven-surefire-plugin/src/site/markdown/docker.md b/maven-surefire-plugin/src/site/markdown/docker.md index cb2fa06ef..b7235b267 100644 --- a/maven-surefire-plugin/src/site/markdown/docker.md +++ b/maven-surefire-plugin/src/site/markdown/docker.md @@ -80,7 +80,7 @@ The `pom.xml`: <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> - <version>4.13</version> + <version>4.13.2</version> </dependency> </dependencies>
