Avoid downloading so many AWS dependencies for the entire SDK
Only specify the deps we need for the tests.
MODIFY
dd-java-agent/instrumentation/aws-java-sdk-1.11.0/aws-java-sdk-1.11.0.gradle
dd-java-agent/instrumentation/aws-java-sdk-1.11.0/aws-java-sdk-1.11.0.gradle
@@ -49,13 +49,19 @@ dependencies {
testCompile project(':dd-java-agent:testing')
// Include httpclient instrumentation for testing because it is a dependency for aws-sdk.
testCompile project(':dd-java-agent:instrumentation:apache-httpclient-4')
- testCompile group: 'com.amazonaws', name: 'aws-java-sdk', version: '1.11.0'
+ testCompile group: 'com.amazonaws', name: 'aws-java-sdk-s3', version: '1.11.0'
+ testCompile group: 'com.amazonaws', name: 'aws-java-sdk-rds', version: '1.11.0'
+ testCompile group: 'com.amazonaws', name: 'aws-java-sdk-ec2', version: '1.11.0'
test_1_11_106Compile project(':dd-java-agent:testing')
test_1_11_106Compile project(':dd-java-agent:instrumentation:apache-httpclient-4')
- test_1_11_106Compile group: 'com.amazonaws', name: 'aws-java-sdk', version: '1.11.106'
+ test_1_11_106Compile group: 'com.amazonaws', name: 'aws-java-sdk-s3', version: '1.11.106'
+ test_1_11_106Compile group: 'com.amazonaws', name: 'aws-java-sdk-rds', version: '1.11.106'
+ test_1_11_106Compile group: 'com.amazonaws', name: 'aws-java-sdk-ec2', version: '1.11.106'
latestDepTestCompile project(':dd-java-agent:testing')
latestDepTestCompile project(':dd-java-agent:instrumentation:apache-httpclient-4')
- latestDepTestCompile group: 'com.amazonaws', name: 'aws-java-sdk', version: '+'
+ latestDepTestCompile group: 'com.amazonaws', name: 'aws-java-sdk-s3', version: '+'
+ latestDepTestCompile group: 'com.amazonaws', name: 'aws-java-sdk-rds', version: '+'
+ latestDepTestCompile group: 'com.amazonaws', name: 'aws-java-sdk-ec2', version: '+'
}

Avoid downloading so many AWS dependencies for the entire SDK

Only specify the deps we need for the tests.