Skip to content

Commit

Permalink
Work around Log4J error being logged when running test tasks
Browse files Browse the repository at this point in the history
Related issue: gradle/gradle#30554
  • Loading branch information
marcphilipp committed Sep 18, 2024
1 parent 837e259 commit f7684f6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ tasks.withType<Test>().configureEach {
}
}
systemProperty("java.util.logging.manager", "org.apache.logging.log4j.jul.LogManager")
// https://github.com/gradle/gradle/issues/30554
systemProperty("log4j2.julLoggerAdapter", "org.apache.logging.log4j.jul.CoreLoggerAdapter")
// Avoid overhead (see https://logging.apache.org/log4j/2.x/manual/jmx.html#enabling-jmx)
systemProperty("log4j2.disableJmx", "true")
// Required until ASM officially supports the JDK 14
Expand Down

0 comments on commit f7684f6

Please sign in to comment.