@@ -13,15 +13,15 @@ however, that it is recommended to use IDEA 2017.3 or newer since more recent ve
1313IDEA download the following JARs automatically based on the API version used in the
1414project: `junit-platform-launcher`, `junit-jupiter-engine`, and `junit-vintage-engine`.
1515
16- In order to use a different JUnit 5 version (e.g., {jupiter- version}), you may need to
16+ In order to use a different JUnit 5 version (e.g., {version}), you may need to
1717include the corresponding versions of the `junit-platform-launcher`,
1818`junit-jupiter-engine`, and `junit-vintage-engine` JARs in the classpath.
1919
2020.Additional Gradle Dependencies 
2121[source,groovy]
2222[subs=attributes+]
2323---- 
24- testImplementation(platform("org.junit:junit-bom:{bom- version}")) 
24+ testImplementation(platform("org.junit:junit-bom:{version}")) 
2525testRuntimeOnly("org.junit.platform:junit-platform-launcher") 
2626testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine") 
2727testRuntimeOnly("org.junit.vintage:junit-vintage-engine") 
@@ -54,7 +54,7 @@ testRuntimeOnly("org.junit.vintage:junit-vintage-engine")
5454		<dependency> 
5555			<groupId>org.junit</groupId> 
5656			<artifactId>junit-bom</artifactId> 
57- 			<version>{bom- version}</version> 
57+ 			<version>{version}</version> 
5858			<type>pom</type> 
5959			<scope>import</scope> 
6060		</dependency> 
@@ -160,7 +160,7 @@ versions of all JUnit 5 artifacts.
160160.Explicit platform dependency on the BOM 
161161---- 
162162dependencies { 
163- 	testImplementation(platform("org.junit:junit-bom:{bom- version}")) 
163+ 	testImplementation(platform("org.junit:junit-bom:{version}")) 
164164	testImplementation("org.junit.jupiter:junit-jupiter") 
165165	testRuntimeOnly("org.junit.platform:junit-platform-launcher") 
166166} 
@@ -181,7 +181,7 @@ artifacts.
181181.Implicit platform dependency on the BOM 
182182---- 
183183dependencies { 
184- 	testImplementation("org.junit.jupiter:junit-jupiter:{jupiter- version}") // <1> 
184+ 	testImplementation("org.junit.jupiter:junit-jupiter:{version}") // <1> 
185185	testRuntimeOnly("org.junit.platform:junit-platform-launcher") // <2> 
186186} 
187187---- 
@@ -212,7 +212,7 @@ on the dependency-aggregating JUnit Jupiter artifact similar to the following.
212212[subs=attributes+]
213213---- 
214214dependencies { 
215- 	testImplementation("org.junit.jupiter:junit-jupiter:{jupiter- version}") 
215+ 	testImplementation("org.junit.jupiter:junit-jupiter:{version}") 
216216	testRuntimeOnly("org.junit.platform:junit-platform-launcher") 
217217} 
218218---- 
@@ -228,7 +228,7 @@ support.
228228testing { 
229229	suites { 
230230		named<JvmTestSuite>("test") { 
231- 			useJUnitJupiter("{jupiter- version}") 
231+ 			useJUnitJupiter("{version}") 
232232		} 
233233	} 
234234} 
@@ -241,7 +241,7 @@ testing {
241241testing { 
242242	suites { 
243243		test { 
244- 			useJUnitJupiter("{jupiter- version}") 
244+ 			useJUnitJupiter("{version}") 
245245		} 
246246	} 
247247} 
@@ -256,7 +256,7 @@ implementation similar to the following.
256256---- 
257257dependencies { 
258258	testImplementation("junit:junit:{junit4-version}") 
259- 	testRuntimeOnly("org.junit.vintage:junit-vintage-engine:{vintage- version}") 
259+ 	testRuntimeOnly("org.junit.vintage:junit-vintage-engine:{version}") 
260260	testRuntimeOnly("org.junit.platform:junit-platform-launcher") 
261261} 
262262---- 
@@ -337,7 +337,7 @@ Maven build as follows.
337337<dependency> 
338338    <groupId>org.junit.platform</groupId> 
339339    <artifactId>junit-platform-launcher</artifactId> 
340-     <version>{platform- version}</version> 
340+     <version>{version}</version> 
341341    <scope>test</scope> 
342342</dependency> 
343343---- 
@@ -358,7 +358,7 @@ versions of all JUnit 5 artifacts.
358358		<dependency> 
359359			<groupId>org.junit</groupId> 
360360			<artifactId>junit-bom</artifactId> 
361- 			<version>{bom- version}</version> 
361+ 			<version>{version}</version> 
362362			<type>pom</type> 
363363			<scope>import</scope> 
364364		</dependency> 
@@ -391,7 +391,7 @@ following.
391391		<dependency> 
392392			<groupId>org.junit.jupiter</groupId> 
393393			<artifactId>junit-jupiter</artifactId> 
394- 			<version>{jupiter- version}</version> <!-- can be omitted when using the BOM --> 
394+ 			<version>{version}</version> <!-- can be omitted when using the BOM --> 
395395			<scope>test</scope> 
396396		</dependency> 
397397		<!-- ... --> 
@@ -430,7 +430,7 @@ long as you configure `test` scoped dependencies on JUnit 4 and the JUnit Vintag
430430		<dependency> 
431431			<groupId>org.junit.vintage</groupId> 
432432			<artifactId>junit-vintage-engine</artifactId> 
433- 			<version>{vintage- version}</version> <!-- can be omitted when using the BOM --> 
433+ 			<version>{version}</version> <!-- can be omitted when using the BOM --> 
434434			<scope>test</scope> 
435435		</dependency> 
436436		<!-- ... --> 
@@ -659,7 +659,7 @@ With Gradle you can override the JUnit Jupiter version by including the followin
659659[source,groovy,indent=0]
660660[subs=attributes+]
661661---- 
662- 	ext['junit-jupiter.version'] = '{jupiter- version}' 
662+ 	ext['junit-jupiter.version'] = '{version}' 
663663---- 
664664
665665With Maven you can override the JUnit Jupiter version by including the following in your
@@ -669,7 +669,7 @@ With Maven you can override the JUnit Jupiter version by including the following
669669[subs=attributes+]
670670---- 
671671	<properties> 
672- 		<junit-jupiter.version>{jupiter- version}</junit-jupiter.version> 
672+ 		<junit-jupiter.version>{version}</junit-jupiter.version> 
673673	</properties> 
674674---- 
675675
@@ -680,7 +680,7 @@ The `{ConsoleLauncher}` is a command-line Java application that lets you launch
680680Platform from the console. For example, it can be used to run JUnit Vintage and JUnit
681681Jupiter tests and print test execution results to the console.
682682
683- An executable _Fat JAR_ (`junit-platform-console-standalone-{platform- version}.jar`) that
683+ An executable _Fat JAR_ (`junit-platform-console-standalone-{version}.jar`) that
684684contains the contents of all of its dependencies is published in the {Maven_Central}
685685repository under the
686686https://repo1.maven.org/maven2/org/junit/platform/junit-platform-console-standalone[junit-platform-console-standalone]
@@ -711,7 +711,7 @@ standalone `ConsoleLauncher` as shown below.
711711
712712[source,console,subs=attributes+]
713713---- 
714- $ java -jar junit-platform-console-standalone-{platform- version}.jar execute <OPTIONS> 
714+ $ java -jar junit-platform-console-standalone-{version}.jar execute <OPTIONS> 
715715
716716├─ JUnit Vintage 
717717│  └─ example.JUnit4Tests 
@@ -820,7 +820,7 @@ files using the `--redirect-stdout` and `--redirect-stderr` options:
820820
821821[source,console,subs=attributes+]
822822---- 
823- $ java -jar junit-platform-console-standalone-{platform- version}.jar <OPTIONS> \ 
823+ $ java -jar junit-platform-console-standalone-{version}.jar <OPTIONS> \ 
824824  --redirect-stdout=stdout.txt \ 
825825  --redirect-stderr=stderr.txt 
826826---- 
@@ -1255,7 +1255,7 @@ to a problem.
12551255In order to record Flight Recorder events generated while running tests, you need to:
12561256
125712571. Ensure that you are using either Java 8 Update 262 or higher or Java 11 or later.
1258- 2. Provide the `org.junit.platform.jfr` module (`junit-platform-jfr-{platform- version}.jar`)
1258+ 2. Provide the `org.junit.platform.jfr` module (`junit-platform-jfr-{version}.jar`)
12591259   on the class-path or module-path at test runtime.
126012603. Start flight recording when launching a test run. Flight Recorder can be started via
12611261   java command line option:
0 commit comments