-
Notifications
You must be signed in to change notification settings - Fork 330
Expand file tree
/
Copy pathbuild.gradle
More file actions
59 lines (54 loc) · 3.45 KB
/
build.gradle
File metadata and controls
59 lines (54 loc) · 3.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
muzzle {
fail {
group = "commons-httpclient"
module = "commons-httpclient"
versions = "[,4.0)"
skipVersions += '3.1-jenkins-1'
skipVersions += '2.0-final' // broken metadata on maven central
}
pass {
group = "org.apache.httpcomponents"
module = "httpclient"
versions = "[4.0,5)"
skipVersions += "4.3.6" // missing httpcore-4.3.3.redhat-3.jar at https://maven.repository.redhat.com/ga/org/apache/httpcomponents/httpcore/4.3.3.redhat-3/
assertInverse = true
}
pass {
// We want to support the dropwizard clients too.
group = 'io.dropwizard'
module = 'dropwizard-client'
versions = "[,3)" // dropwizard-client 3+ uses httpclient5
}
}
apply from: "$rootDir/gradle/java.gradle"
addTestSuiteForDir('latestDepTest', 'test')
addTestSuite('iastIntegrationTest')
addTestSuiteExtendingForDir('v41IastIntegrationTest', 'iastIntegrationTest', 'iastIntegrationTest')
addTestSuiteExtendingForDir('v42IastIntegrationTest', 'iastIntegrationTest', 'iastIntegrationTest')
addTestSuiteExtendingForDir('v43IastIntegrationTest', 'iastIntegrationTest', 'iastIntegrationTest')
addTestSuiteExtendingForDir('v44IastIntegrationTest', 'iastIntegrationTest', 'iastIntegrationTest')
addTestSuiteExtendingForDir('v45IastIntegrationTest', 'iastIntegrationTest', 'iastIntegrationTest')
dependencies {
compileOnly group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.0'
testImplementation project(':dd-java-agent:agent-iast:iast-test-fixtures')
testImplementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.0'
testImplementation(project(':dd-java-agent:instrumentation:apache-httpclient:apache-httpasyncclient-4.0'))
// to instrument the integration test
iastIntegrationTestImplementation project(':dd-java-agent:agent-iast:iast-test-fixtures')
iastIntegrationTestImplementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.0'
// Provide real (non-shadowed) jetty for the test server bootstrap
iastIntegrationTestImplementation group: 'org.eclipse.jetty', name: 'jetty-server', version: '9.4.56.v20240826'
iastIntegrationTestImplementation group: 'org.eclipse.jetty', name: 'jetty-servlet', version: '9.4.56.v20240826'
iastIntegrationTestRuntimeOnly(project(':dd-java-agent:instrumentation:apache-httpcore:apache-httpcore-4.0'))
iastIntegrationTestRuntimeOnly(project(':dd-java-agent:instrumentation:servlet:javax-servlet:javax-servlet-common'))
iastIntegrationTestRuntimeOnly(project(':dd-java-agent:instrumentation:jetty:jetty-server:jetty-server-9.0'))
iastIntegrationTestRuntimeOnly(project(':dd-java-agent:instrumentation:java:java-lang:java-lang-1.8'))
iastIntegrationTestRuntimeOnly(project(':dd-java-agent:instrumentation:java:java-net:java-net-1.8'))
iastIntegrationTestRuntimeOnly project(':dd-java-agent:instrumentation:iast-instrumenter')
v41IastIntegrationTestImplementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.1'
v42IastIntegrationTestImplementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.2'
v43IastIntegrationTestImplementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.3'
v44IastIntegrationTestImplementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.4'
v45IastIntegrationTestImplementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5'
latestDepTestImplementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '+'
}