Does the same thing work on the command line?
In any case, you can remove the jar from the classpath container with the following snippet.
eclipse.classpath.file.whenMerged {
entries.removeAll { it.path.endsWith('junit-platform-launcher-1.3.1 jar') }
}