log4j2.gradle 817 B

12345678910111213141516171819202122232425262728293031
  1. apply from: "${rootDir}/gradle/java.gradle"
  2. ext {
  3. log4jVersion = '2.11.2'
  4. }
  5. configurations {
  6. // In order to test the real log4j library we need to remove the log4j transitive
  7. // dependency 'log4j-over-slf4j' brought in by :dd-java-agent:testing which would shadow
  8. // the log4j module under test using a proxy to slf4j instead.
  9. testCompile.exclude group: 'org.slf4j', module: 'log4j-over-slf4j'
  10. }
  11. muzzle {
  12. pass {
  13. group = 'org.apache.logging.log4j'
  14. module = 'log4j-core'
  15. versions = '(,)'
  16. }
  17. pass {
  18. group = 'org.apache.logging.log4j'
  19. module = 'log4j-api'
  20. versions = '(,)'
  21. }
  22. }
  23. dependencies {
  24. testCompile group: 'org.apache.logging.log4j', name: 'log4j-core', version: log4jVersion
  25. testCompile group: 'org.apache.logging.log4j', name: 'log4j-api', version: log4jVersion
  26. }