Merge branch '3.2.x'

Closes gh-40530
This commit is contained in:
Moritz Halbritter 2024-04-26 11:13:03 +02:00
commit a12e3d4594
1 changed files with 2 additions and 4 deletions

View File

@ -198,10 +198,8 @@ public class GradleBuild {
if (this.expectDeprecationWarnings == null || (this.gradleVersion != null
&& this.expectDeprecationWarnings.compareTo(GradleVersion.version(this.gradleVersion)) > 0)) {
String buildOutput = result.getOutput();
if (this.expectedDeprecationMessages != null) {
for (String message : this.expectedDeprecationMessages) {
buildOutput = buildOutput.replaceAll(message, "");
}
for (String message : this.expectedDeprecationMessages) {
buildOutput = buildOutput.replaceAll(message, "");
}
assertThat(buildOutput).doesNotContainIgnoringCase("deprecated");
}