Update:
Note that the junit-platform-gradle-plugin developed by the JUnit Team is deprecated in JUnit Platform 1.2 and is no longer supported in 1.3. Please switch to the standard Gradles test task in Gradle 4.6 or higher. Details here .
As I mentioned here , if you are still using the deprecated junit-platform-gradle-plugin you can set the system properties as follows:
afterEvaluate { def junitPlatformTestTask = tasks.getByName('junitPlatformTest') junitPlatformTestTask.systemProperty 'org.slf4j.simpleLogger.defaultLogLevel', 'warn' }
source share