probably due to unaligned versions of the junit-platform-engine and junit-platform-launcher jars on the classpath/module path.が出るようになった件

EclipseでJunitを実行したら、「probably due to unaligned versions of the junit-platform-engine and junit-platform-launcher jars on the classpath/module path.」とエラーが出るようになった。

Junit 5.12からは、launcherのバージョンを明示的に指定してクラスパスに通しておかないと、Eclipseで互換性のない古いバージョンが使われてしまい、エラーになる。

<dependency>
    <groupId>org.junit.platform</groupId>
    <artifactId>junit-platform-launcher</artifactId>
    <version>1.12.1</version>
    <scope>test</scope>
</dependency>

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です