Test Gradle Plugin against 8.8
Closes gh-40573
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2023 the original author or authors.
|
||||
* Copyright 2012-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -596,7 +596,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();
|
||||
|
||||
Reference in New Issue
Block a user