Skip to content

Commit

Permalink
Merge branch 'master' into nikita-tkachenko/distributed-traces-in-test
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-tkachenko-datadog authored Dec 12, 2024
2 parents 26f2c2a + aa7092b commit 8217a98
Show file tree
Hide file tree
Showing 6 changed files with 604 additions and 2 deletions.
40 changes: 40 additions & 0 deletions dd-java-agent/instrumentation/kafka-connect-0.11/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
muzzle {
pass {
group = "org.apache.kafka"
module = "connect-runtime"
versions = "[0.11.0.0,)"
assertInverse = true
}
}

apply from: "$rootDir/gradle/java.gradle"

dependencies {
compileOnly group: 'org.apache.kafka', name: 'connect-runtime', version: '0.11.0.0'

testImplementation(testFixtures(project(':dd-java-agent:agent-iast')))
testRuntimeOnly project(':dd-java-agent:instrumentation:iast-instrumenter')
testRuntimeOnly project(':dd-java-agent:instrumentation:java-lang')
testRuntimeOnly project(':dd-java-agent:instrumentation:java-io')
testRuntimeOnly project(':dd-java-agent:instrumentation:jackson-core')
testRuntimeOnly project(':dd-java-agent:instrumentation:jackson-core:jackson-core-2.8')
testImplementation(group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.10')
testImplementation group: 'org.assertj', name: 'assertj-core', version: '2.9.+'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '2.19.0'
testImplementation group: 'javax.xml.bind', name: 'jaxb-api', version: '2.2.3'
testImplementation 'org.apache.kafka:connect-api:2.7.0' // Fixed version
testImplementation 'org.apache.kafka:connect-runtime:2.7.0'
testImplementation 'org.apache.kafka:connect-file:2.7.0' // For FileStreamSourceConnector
testImplementation 'org.apache.kafka:kafka-clients:2.7.0'
// Spring Kafka Test library
testImplementation 'org.springframework.kafka:spring-kafka-test:2.7.9' // Version compatible with Kafka 2.7.x
testRuntimeOnly project(':dd-java-agent:instrumentation:kafka-clients-0.11')
testRuntimeOnly project(':dd-java-agent:instrumentation:kafka-clients-3.8')
testRuntimeOnly project(':dd-java-agent:instrumentation:kafka-streams-0.11')
testRuntimeOnly project(':dd-java-agent:instrumentation:kafka-streams-1.0')
}

configurations.testRuntimeClasspath {
// spock-core depends on assertj version that is not compatible with kafka-clients
resolutionStrategy.force 'org.assertj:assertj-core:2.9.1'
}
Loading

0 comments on commit 8217a98

Please sign in to comment.