-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Upgrade to spring-core-test
6.2.4 forces upgrade to JUnit 5.12
#34610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
OutputDirectoryProvider
during testOutputDirectoryProvider
during test
Hi @smcvb, Congratulations on submitting your first issue for the Spring Framework! 👍
I find that quite intriguing, and I think I'll take a look at that PR to get to the bottom of it. In any case, the Thus, I assume your PR may work if you upgrade your Can you please give that a try and let me know if it works? |
OutputDirectoryProvider
during testOutputDirectoryProvider
with Maven Surefire
OutputDirectoryProvider
with Maven Surefirespring-core-test
6.2.4 forces upgrade to JUnit 5.12
Ow, that's a great catch, @sbrannen! So, I started digging a little in the pom. As a matter of fact, we never included a dependency on the After adding a test dependency on Thus, concluding, the solution was twofold:
With that, I feel confident to close this ticket succesfully. |
It turns out the cause for this unexpected behavior is three-fold.
All is not lost, however. If you read the JUnit 5 User Guide, you'll note that you can use the I got your build working with Spring Framework 6.2.4 as follows. Upgrade Spring Framework version. <spring.version>6.2.4</spring.version> Delete (or comment out) the explicit <!-- <junit.jupiter.version>5.10.1</junit.jupiter.version> --> Use the <dependencyManagement>
<dependencies>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>5.10.1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement> That works with JUnit 5.10.1 and Spring Framework 6.2.4. You can also change the JUnit version to 5.12.1, and it still works with Spring Framework 6.2.4. And I now see that you've closed this issue while I was typing this. 👀 |
I'm glad to hear that worked for you! However, I would still recommend that you use the
You're very welcome! |
Switching to the |
I manage several GitHub repositories, a multitude of which use Spring. One of these projects is our Spring AoT extension, for Axon Framework.
To ensure we're on track with the latest releases, we use
dependabot
to automatically update our dependencies.As off release 6.2.4, upgraded in this PR, the
mvn test
goal fails with the following exception:Although I wager this behavior is impacted by the
maven-surefire-plugin
we use, the predicament is resolved when downgrade the Spring dependencies to 6.2.3.As such, I figured it would be worth to share this here.
If anybody wants to try out this failure, please use the referred to dependabot PR.
The text was updated successfully, but these errors were encountered: