}
dependency 'com.onelogin:java-saml:2.9.0'
dependency 'com.oracle.database.jdbc:ojdbc11:23.3.0.23.09'
+ dependency 'com.datadoghq:dd-java-agent:1.30.1'
dependency 'org.aspectj:aspectjtools:1.9.21'
// If this gets updated the dependency on okio 3.5.0 should be reviewed
dependencySet(group: 'com.squareup.okhttp3', version: '4.12.0') {
configurations {
utMonitoring
testMonitoring
+ ddAgent
}
dependencies {
utMonitoring 'org.aspectj:aspectjweaver:1.9.21'
testMonitoring 'org.aspectj:aspectjweaver:1.9.21'
+ ddAgent 'com.datadoghq:dd-java-agent'
+ }
+
+ if (System.getenv('CI') == "true") {
+ doFirst {
+ ext {
+ ddJavaAgent = configurations.ddAgent.resolvedConfiguration.resolvedArtifacts.find { it.name == 'dd-java-agent' }
+ }
+ jvmArgs "-javaagent:${ddJavaAgent.file}"
+ jvmArgs "-Ddatadog.slf4j.simpleLogger.logFile=${project.projectDir}/build/datadog.log"
+ }
}
}