41 lines
1.2 KiB
Groovy
41 lines
1.2 KiB
Groovy
apply from: "$rootDir/gradle/instrumentation.gradle"
|
|
apply plugin: 'org.unbroken-dome.test-sets'
|
|
|
|
muzzle {
|
|
pass {
|
|
group = 'org.apache.logging.log4j'
|
|
module = 'log4j-core'
|
|
versions = '(,)'
|
|
}
|
|
|
|
pass {
|
|
group = 'org.apache.logging.log4j'
|
|
module = 'log4j-api'
|
|
versions = '(,)'
|
|
}
|
|
}
|
|
|
|
testSets {
|
|
latestDepTest {
|
|
dirName = 'test'
|
|
}
|
|
}
|
|
|
|
configurations {
|
|
// In order to test the real log4j library we need to remove the log4j transitive
|
|
// dependency 'log4j-over-slf4j' brought in by :testing-common which would shadow
|
|
// the log4j module under test using a proxy to slf4j instead.
|
|
testImplementation.exclude group: 'org.slf4j', module: 'log4j-over-slf4j'
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.0'
|
|
compileOnly group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.0'
|
|
|
|
testImplementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.0'
|
|
testImplementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.0'
|
|
|
|
latestDepTestImplementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '+'
|
|
latestDepTestImplementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '+'
|
|
}
|