I have an app based as follows:
Spring Framework
Gradle
You need to remove the org.junit.platform.gradle.plugin because it disables the standard test task by default.
org.junit.platform.gradle.plugin
test