`tasks.withType<Test> { useJUnitPlatform() }...
# gradle
a
tasks.withType<Test> { useJUnitPlatform() }
might actually work just the same, since you normally just have one test task