diff options
author | Belen Pruvost <belen.pruvost@sonarsource.com> | 2021-11-11 14:16:24 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-11-19 20:03:27 +0000 |
commit | 92f482f2aa43e4aa36e0fda377d13b9dc3282ff9 (patch) | |
tree | b3ab8cf7b11a56c604bfc2a105c5d8ad634d6521 /build.gradle | |
parent | e63a5e9b07290d49a790b807af8915a48b6c28ca (diff) | |
download | sonarqube-92f482f2aa43e4aa36e0fda377d13b9dc3282ff9.tar.gz sonarqube-92f482f2aa43e4aa36e0fda377d13b9dc3282ff9.zip |
SONAR-15631 - New UT Monitoring Module
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle index 275229f72f5..3cb1467fffb 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ plugins { // Ordered alphabeticly id 'com.github.ben-manes.versions' version '0.33.0' id 'com.github.hierynomus.license' version '0.15.0' - id "com.github.hierynomus.license-report" version"0.15.0" apply false + id "com.github.hierynomus.license-report" version "0.15.0" apply false id 'com.github.johnrengelman.shadow' version '5.2.0' apply false id 'com.google.protobuf' version '0.8.13' apply false id 'com.jfrog.artifactory' version '4.21.0' @@ -337,6 +337,7 @@ subprojects { // Documentation must be updated if mssql-jdbc is updated: https://github.com/SonarSource/sonarqube/commit/03e4773ebf6cba854cdcf57a600095f65f4f53e7 dependency 'com.microsoft.sqlserver:mssql-jdbc:9.2.0.jre11' dependency 'com.oracle.database.jdbc:ojdbc8:19.3.0.0' + dependency 'org.aspectj:aspectjtools:1.9.6' // upgrade okhttp3 dependency kotlin to get rid of not exploitable CVE-2020-29582 dependency 'org.jetbrains.kotlin:kotlin-stdlib-common:1.4.21' dependency 'org.jetbrains.kotlin:kotlin-stdlib:1.4.21' @@ -608,6 +609,29 @@ subprojects { } } + if (System.getenv('CIRRUS_BRANCH') == "branch-nightly-build") { + tasks.withType(Test) { + + configurations { + utMonitoring + } + + dependencies { + testCompile project(":ut-monitoring") + + utMonitoring 'org.aspectj:aspectjweaver:1.9.6' + } + + doFirst { + ext { + aspectJWeaver = configurations.utMonitoring.resolvedConfiguration.resolvedArtifacts.find { it.name == 'aspectjweaver' } + } + jvmArgs "-javaagent:${aspectJWeaver.file}" + } + } + } + + signing { def signingKeyId = findProperty("signingKeyId") def signingKey = findProperty("signingKey") |