44 lines
1.9 KiB
Groovy
44 lines
1.9 KiB
Groovy
apply from: "${rootDir}/gradle/instrumentation.gradle"
|
|
apply plugin: 'org.unbroken-dome.test-sets'
|
|
|
|
muzzle {
|
|
pass {
|
|
group = "org.apache.kafka"
|
|
module = "kafka-streams"
|
|
versions = "[0.11.0.0,)"
|
|
}
|
|
}
|
|
|
|
testSets {
|
|
latestDepTest {
|
|
dirName = 'test'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly group: 'org.apache.kafka', name: 'kafka-streams', version: '0.11.0.0'
|
|
|
|
// Include kafka-clients instrumentation for tests.
|
|
testCompile project(':instrumentation:kafka-clients-0.11')
|
|
|
|
testCompile group: 'org.apache.kafka', name: 'kafka-clients', version: '0.11.0.0'
|
|
testCompile group: 'org.apache.kafka', name: 'kafka-streams', version: '0.11.0.0'
|
|
testCompile group: 'org.springframework.kafka', name: 'spring-kafka', version: '1.3.3.RELEASE'
|
|
testCompile group: 'org.springframework.kafka', name: 'spring-kafka-test', version: '1.3.3.RELEASE'
|
|
testCompile group: 'javax.xml.bind', name: 'jaxb-api', version: '2.2.3'
|
|
testCompile group: 'org.assertj', name: 'assertj-core', version: '2.9.+'
|
|
testCompile group: 'org.mockito', name: 'mockito-core', version: '2.19.0'
|
|
|
|
|
|
// Include latest version of kafka itself along with latest version of client libs.
|
|
// This seems to help with jar compatibility hell.
|
|
latestDepTestCompile group: 'org.apache.kafka', name: 'kafka_2.11', version: '2.3.+'
|
|
// (Pinning to 2.3.x: 2.4.0 introduces an error when executing compileLatestDepTestGroovy)
|
|
// Caused by: java.lang.NoClassDefFoundError: org.I0Itec.zkclient.ZkClient
|
|
latestDepTestCompile group: 'org.apache.kafka', name: 'kafka-clients', version: '2.3.+'
|
|
latestDepTestCompile group: 'org.apache.kafka', name: 'kafka-streams', version: '2.3.+'
|
|
latestDepTestCompile group: 'org.springframework.kafka', name: 'spring-kafka', version: '2.2.+'
|
|
latestDepTestCompile group: 'org.springframework.kafka', name: 'spring-kafka-test', version: '2.2.+'
|
|
latestDepTestCompile group: 'org.assertj', name: 'assertj-core', version: '3.+'
|
|
}
|