From cf17b392121406b72ca64c6dd9caaaddf3ad78a3 Mon Sep 17 00:00:00 2001 From: Aurelien Poscia Date: Tue, 13 Jun 2023 07:07:17 +0200 Subject: [PATCH] SONAR-19498 Fix nightly build --- build.gradle | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/build.gradle b/build.gradle index 58b00997ab5..c02e68d4177 100644 --- a/build.gradle +++ b/build.gradle @@ -559,19 +559,22 @@ subprojects { } } - if (isNightlyBuild) { - tasks.withType(Test) { - configurations { - utMonitoring - } + tasks.withType(Test) { - dependencies { - testImplementation project(":ut-monitoring") + configurations { + utMonitoring + } - utMonitoring 'org.aspectj:aspectjweaver:1.9.19' - } + dependencies { + testImplementation project(":ut-monitoring") + utMonitoring 'org.aspectj:aspectjweaver:1.9.19' + } + } + + if (isNightlyBuild) { + tasks.withType(Test) { doFirst { ext { aspectJWeaver = configurations.utMonitoring.resolvedConfiguration.resolvedArtifacts.find { it.name == 'aspectjweaver' } -- 2.39.5