Skip to content

Commit 0a1f42d

Browse files
committed
HSEARCH-4061 Clarify the purpose of Maven property 'version.legacy.junit'
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
1 parent 7b515bd commit 0a1f42d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

integrationtest/showcase/library/pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,16 @@
4444
</exclusion>
4545
</exclusions>
4646
</dependency>
47+
<!--
48+
junit-vintage-engine 5.5.2 version does not support junit 4.13.1.
49+
If we try to use it, a parsing error is thrown.
50+
So we downgrade JUnit, so that junit-vintage-engine will handle it.
51+
See https://stackoverflow.com/a/64371503/1812965
52+
-->
4753
<dependency>
4854
<groupId>junit</groupId>
4955
<artifactId>junit</artifactId>
50-
<version>${version.legacy.junit}</version>
56+
<version>${version.junit.junit-platform-workaround}</version>
5157
<scope>test</scope>
5258
</dependency>
5359
</dependencies>

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,9 @@
252252
junit-vintage-engine 5.5.2 version does not support junit 4.13.1.
253253
If we try to use it, a parsing error is thrown.
254254
So we downgrade JUnit, so that junit-vintage-engine will handle it.
255+
See https://stackoverflow.com/a/64371503/1812965
255256
-->
256-
<version.legacy.junit>4.13</version.legacy.junit>
257+
<version.junit.junit-platform-workaround>4.13</version.junit.junit-platform-workaround>
257258

258259
<version.org.hamcrest>2.2</version.org.hamcrest>
259260
<version.org.mockito>3.5.13</version.org.mockito>

0 commit comments

Comments
 (0)