Test Gradle Plugin against 8.8

Closes gh-40573
This commit is contained in:
Andy Wilkinson 2024-04-29 17:33:21 +01:00
parent c36909824e
commit dd6f516d66
11 changed files with 17 additions and 13 deletions

View File

@ -26,6 +26,6 @@ the<DependencyManagementExtension>().apply {
repositories {
maven {
url = uri("file:repository")
url = uri("repository")
}
}

View File

@ -24,5 +24,5 @@ dependencyManagement {
}
repositories {
maven { url 'file:repository' }
maven { url 'repository' }
}

View File

@ -27,6 +27,6 @@ the<DependencyManagementExtension>().apply {
repositories {
maven {
url = uri("file:repository")
url = uri("repository")
}
}

View File

@ -14,7 +14,7 @@ dependencies {
}
repositories {
maven { url 'file:repository' }
maven { url 'repository' }
}
configurations.all {

View File

@ -15,7 +15,7 @@ dependencies {
repositories {
maven {
url = uri("file:repository")
url = uri("repository")
}
}

View File

@ -9,7 +9,7 @@ dependencies {
}
repositories {
maven { url 'file:repository' }
maven { url 'repository' }
}
configurations.all {

View File

@ -10,7 +10,7 @@ dependencies {
repositories {
maven {
url = uri("file:repository")
url = uri("repository")
}
}

View File

@ -19,7 +19,7 @@ ext['slf4j.version'] = '1.7.20'
// end::custom-version[]
repositories {
maven { url 'file:repository' }
maven { url 'repository' }
}
task slf4jVersion {

View File

@ -12,7 +12,7 @@ extra["slf4j.version"] = "1.7.20"
repositories {
maven {
url = uri("file:repository")
url = uri("repository")
}
}

View File

@ -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();

View File

@ -35,9 +35,9 @@ public final class GradleVersions {
@SuppressWarnings("UnstableApiUsage")
public static List<String> allCompatible() {
if (isJavaVersion(JavaVersion.VERSION_20)) {
return Arrays.asList("8.1.1", "8.7");
return Arrays.asList("8.1.1", "8.8");
}
return Arrays.asList("7.5.1", GradleVersion.current().getVersion(), "8.0.2", "8.7");
return Arrays.asList("7.5.1", GradleVersion.current().getVersion(), "8.0.2", "8.8");
}
public static String minimumCompatible() {