I am trying to migrate custom Jmix add-ons from version 2.5.2 to 2.6.2 which implies a springboot version change from 3.4.6 to 3.5.6.
AddOn Starter test are failing (do not become executed now):
TestEngine with ID 'junit-jupiter' failed to discoverOutputDirectoryProvider not available; probably due to unaligned versions of the junit-platform-engine and junit-platform-launcher jars on the classpath/module path.
Stacktrace excerpt:
org.gradle.api.internal.tasks.testing.TestSuiteExecutionException: Could not complete execution for Gradle Test Executor 27.
at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:65)
at java.base@17.0.17/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
Caused by: org.junit.platform.commons.JUnitException: TestEngine with ID 'junit-jupiter' failed to discover tests
at app//org.junit.platform.launcher.core.EngineDiscoveryOrchestrator.discoverEngineRoot(EngineDiscoveryOrchestrator.java:160)
...
Caused by: org.junit.platform.commons.JUnitException: OutputDirectoryProvider not available; probably due to unaligned versions of the junit-platform-engine and junit-platform-launcher jars on the classpath/module path.
at app//org.junit.platform.engine.EngineDiscoveryRequest.getOutputDirectoryProvider(EngineDiscoveryRequest.java:94)
...
After some investigation, I added the following test runtime dependency to the starter dependencies each:
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
Is that known a known required change? I could not find anything about unit testing (of addons) in the migration documentation.