Automatically pull integrations into the agent
MODIFY
dd-java-agent/dd-java-agent.gradle
dd-java-agent/dd-java-agent.gradle
@@ -21,18 +21,6 @@ dependencies {
compile project(':dd-java-agent:tooling')
compile project(':dd-trace-annotations')
- compile(project(':dd-java-agent:integrations:apache-httpclient-4.3'))
- compile(project(':dd-java-agent:integrations:aws-sdk'))
- compile(project(':dd-java-agent:integrations:datastax-cassandra-3.2'))
- compile(project(':dd-java-agent:integrations:jms-1'))
- compile(project(':dd-java-agent:integrations:jms-2'))
- compile(project(':dd-java-agent:integrations:mongo-3.1'))
- compile(project(':dd-java-agent:integrations:mongo-async-3.3'))
- compile(project(':dd-java-agent:integrations:okhttp-3'))
- compile project(':dd-java-agent:integrations:servlet-2')
- compile project(':dd-java-agent:integrations:servlet-3')
- compile(project(':dd-java-agent:integrations:spring-web'))
-
compile deps.bytebuddy
compile deps.autoservice
@@ -43,6 +31,15 @@ dependencies {
testCompile deps.opentracingMock
}
+// add all subprojects under 'integrations' to the agent's dependencies
+Project java_agent_project = project
+subprojects { subProj ->
+ if (subProj.getPath().startsWith(java_agent_project.getPath() + ':integrations:')) {
+ java_agent_project.dependencies {
+ compile(project(subProj.getPath()))
+ }
+ }
+}
jar {
classifier = 'unbundled'

Automatically pull integrations into the agent