DEV Community

Query Filter
Query Filter

Posted on

docker7

tasks.withType(JavaCompile) {
    // Suppress the most common legacy Java 8 noise
    options.compilerArgs << "-Xlint:-sunapi" 
    options.compilerArgs << "-Xlint:-deprecation"
    options.compilerArgs << "-Xlint:-options"
}

// Ensure the daemon doesn't try to broadcast memory status it can't find
tasks.withType(JavaExec) {
    jvmArgs "-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager"
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)