Skip to content

Commit

Permalink
Fix and reduce duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
trask committed Feb 21, 2021
1 parent 628c3bd commit 13f1d42
Show file tree
Hide file tree
Showing 38 changed files with 3 additions and 74 deletions.
2 changes: 0 additions & 2 deletions test/smoke/testApps/ActuatorMetrics/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ ext.testAppArtifactDir = jar.destinationDirectory
ext.testAppArtifactFilename = jar.archiveFileName.get()

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.1.7.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version: '2.1.7.RELEASE'
}
2 changes: 0 additions & 2 deletions test/smoke/testApps/AutoPerfCounters/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apply plugin: 'war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile aiWebJar
compile 'com.google.guava:guava:20.0'

Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/CachingCalculator/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apply plugin: 'war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile aiWebJar
compile 'com.google.guava:guava:20.0'
compile 'redis.clients:jedis:2+'
Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/Cassandra/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apply plugin: 'war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile aiCoreJar
compile aiWebJar

Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/CoreAndFilter/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apply plugin: 'war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile 'com.microsoft.azure:applicationinsights-web:0.9.3' // testing against oldest version with trackDependency()
testCompile aiCoreJar // the test code (not the app under test) needs a modern core jar (well, at least 1.0.8)
compile 'com.google.guava:guava:20.0'
Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/CustomDimensions/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ ext.testAppArtifactDir = war.destinationDirectory
ext.testAppArtifactFilename = project.name + '.war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile aiWebAutoJar
compile (group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.1.7.RELEASE') {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/CustomInstrumentation/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apply plugin: 'war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile aiWebJar

providedCompile 'javax.servlet:javax.servlet-api:3.0.1'
Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/DataScrubbing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ ext.testAppArtifactDir = war.destinationDirectory
ext.testAppArtifactFilename = project.name + '.war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile aiWebAutoJar
compile (group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.1.7.RELEASE') {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/HeartBeat/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apply plugin: 'war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile aiWebJar
compile 'com.google.guava:guava:20.0'

Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/HttpClients/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apply plugin: 'war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile aiWebJar

compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.7'
Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/JMS/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ ext.testAppArtifactDir = jar.destinationDirectory
ext.testAppArtifactFilename = jar.archiveFileName.get()

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.1.7.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-activemq', version: '2.1.7.RELEASE'

Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/Jdbc/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apply plugin: 'war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile aiWebJar

compile group: 'org.hsqldb', name: 'hsqldb', version: '2.3.6' // 2.4.0+ requires Java 8+
Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/JettyNativeHandler/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ ext.testAppArtifactDir = jar.destinationDirectory
ext.testAppArtifactFilename = jar.archiveFileName.get()

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile group: 'org.springframework.boot', name: 'spring-boot-starter', version: '2.1.7.RELEASE'

// needs to be same version used in fakeIngestion server
Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/Kafka/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ ext.testAppArtifactDir = jar.destinationDirectory
ext.testAppArtifactFilename = jar.archiveFileName.get()

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.1.7.RELEASE'
compile group: 'org.springframework.kafka', name: 'spring-kafka', version: '2.3.1.RELEASE'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.10.0'
Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/LegacySdkWebInterop/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ ext.testAppArtifactDir = war.destinationDirectory
ext.testAppArtifactFilename = project.name + '.war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile aiWebJar

compile (group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.1.7.RELEASE') {
Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/Lettuce/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apply plugin: 'war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile aiWebJar
compile 'com.google.guava:guava:20.0'
compile 'io.lettuce:lettuce-core:5.2.2.RELEASE'
Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/Micrometer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ ext.testAppArtifactDir = jar.destinationDirectory
ext.testAppArtifactFilename = jar.archiveFileName.get()

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.1.7.RELEASE'
compile group: 'io.micrometer', name: 'micrometer-core', version: '1.4.1'
}
2 changes: 0 additions & 2 deletions test/smoke/testApps/MongoDB/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apply plugin: 'war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile aiCoreJar
compile aiWebJar

Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/OpenTelemetryApiSupport/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ ext.testAppArtifactDir = war.destinationDirectory
ext.testAppArtifactFilename = project.name + '.war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile (group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.1.7.RELEASE') {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
}
Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/Sampling/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apply plugin: 'war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile aiWebJar
compile 'com.google.guava:guava:20.0'

Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/SpringBoot1_3Auto/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ ext.testAppArtifactDir = war.destinationDirectory
ext.testAppArtifactFilename = project.name + '.war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile aiWebAutoJar
compile (group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '1.3.8.RELEASE') {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/SpringBootAuto/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ ext.testAppArtifactDir = war.destinationDirectory
ext.testAppArtifactFilename = project.name + '.war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile aiWebAutoJar
compile (group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.1.7.RELEASE') {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/SpringBootTest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ compileSmokeTestJava.sourceCompatibility = 1.8
compileSmokeTestJava.targetCompatibility = 1.8

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile springBootStarterJar
compile 'com.google.guava:guava:27.1-android'
compile (group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.1.7.RELEASE') {
Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/SpringCloudStream/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ ext.testAppArtifactDir = jar.destinationDirectory
ext.testAppArtifactFilename = jar.archiveFileName.get()

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.2.0.RELEASE'
compile group: 'org.springframework.cloud', name: 'spring-cloud-stream', version: '2.2.1.RELEASE'
compile group: 'org.springframework.cloud', name: 'spring-cloud-starter-stream-kafka', version: '2.2.1.RELEASE'
Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/SpringScheduling/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ ext.testAppArtifactDir = war.destinationDirectory
ext.testAppArtifactFilename = project.name + '.war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile aiWebAutoJar
compile (group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.1.7.RELEASE') {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/SystemExit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,5 @@ ext.testAppArtifactDir = jar.destinationDirectory
ext.testAppArtifactFilename = jar.archiveFileName.get()

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.1.7.RELEASE'
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apply plugin: 'war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

providedCompile 'javax.servlet:javax.servlet-api:3.0.1'
}

Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/TraceLog4j1_2/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apply plugin: 'war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile aiWebJar
compile aiLog4j1_2Jar
compile 'com.google.guava:guava:20.0'
Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/TraceLog4j1_2UsingAgent/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apply plugin: 'war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile aiWebAutoJar
compile 'com.google.guava:guava:20.0'

Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/TraceLog4j2/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apply plugin: 'war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile 'org.apache.logging.log4j:log4j-api:2.11.0'
compile 'org.apache.logging.log4j:log4j-core:2.11.0'
compile aiWebJar
Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/TraceLog4j2UsingAgent/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apply plugin: 'war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile 'org.apache.logging.log4j:log4j-api:2.11.0'
compile 'org.apache.logging.log4j:log4j-core:2.11.0'
compile aiWebAutoJar
Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/TraceLogBack/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apply plugin: 'war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile aiWebJar
compile aiLogbackJar
compile 'com.google.guava:guava:20.0'
Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/TraceLogBackUsingAgent/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apply plugin: 'war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile aiWebAutoJar
compile 'com.google.guava:guava:20.0'

Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/VerifyShading/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ ext.testAppArtifactDir = jar.destinationDirectory
ext.testAppArtifactFilename = jar.archiveFileName.get()

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.1.7.RELEASE'
compile 'com.google.guava:guava:20.0'
}
2 changes: 0 additions & 2 deletions test/smoke/testApps/WebAuto/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apply plugin: 'war'

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile aiWebAutoJar

providedCompile 'javax.servlet:javax.servlet-api:3.0.1'
Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/WebFlux/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,5 @@ ext.testAppArtifactDir = jar.destinationDirectory
ext.testAppArtifactFilename = jar.archiveFileName.get()

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile group: 'org.springframework.boot', name: 'spring-boot-starter-webflux', version: '2.1.7.RELEASE'
}
3 changes: 3 additions & 0 deletions test/smoke/testApps/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ subprojects {
repositories {
jcenter()
mavenCentral()
mavenLocal() // this is needed to resolve aiAgentJar transitive dependencies, at least in gRPC:extractIncludeProto
}

sourceSets {
Expand All @@ -29,6 +30,8 @@ subprojects {
}

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

smokeTestCompile project(':test:smoke:framework:testCore')
smokeTestCompile project(':test:smoke:framework:utils')
smokeTestCompile 'org.hamcrest:hamcrest-core:1.3'
Expand Down
2 changes: 0 additions & 2 deletions test/smoke/testApps/gRPC/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ protobuf {
}

dependencies {
compileOnly aiAgentJar // this is just to force building the agent first

compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.1.7.RELEASE'

compile group: 'io.grpc', name: 'grpc-core', version: grpcVersion
Expand Down

0 comments on commit 13f1d42

Please sign in to comment.