Merge branch '3.2.x'

Closes gh-40975
This commit is contained in:
Andy Wilkinson
2024-06-03 09:37:14 +01:00
11 changed files with 16 additions and 12 deletions

View File

@@ -609,7 +609,11 @@ abstract class AbstractBootArchiveIntegrationTests {
@TestTemplate
void dirModeAndFileModeAreApplied() throws IOException {
BuildResult result = this.gradleBuild.build(this.taskName);
BuildResult result = this.gradleBuild.expectDeprecationWarningsWithAtLeastVersion("8.8-rc-1")
.expectDeprecationMessages("The CopyProcessingSpec.setDirMode(Integer) method has been deprecated",
"The CopyProcessingSpec.setFileMode(Integer) method has been deprecated",
"upgrading_version_8.html#unix_file_permissions_deprecated")
.build(this.taskName);
assertThat(result.task(":" + this.taskName).getOutcome()).isEqualTo(TaskOutcome.SUCCESS);
try (ZipFile jarFile = new ZipFile(new File(this.gradleBuild.getProjectDir(), "build/libs").listFiles()[0])) {
Enumeration<ZipArchiveEntry> entries = jarFile.getEntries();