Merge branch '2.4.x'
Closes gh-25168
This commit is contained in:
@@ -326,6 +326,7 @@ abstract class AbstractBootArchiveIntegrationTests {
|
||||
assertThat(jarFile.getEntry(layerToolsJar)).isNotNull();
|
||||
assertThat(jarFile.getEntry(this.libPath + "alpha-1.2.3.jar")).isNotNull();
|
||||
assertThat(jarFile.getEntry(this.libPath + "bravo-1.2.3.jar")).isNotNull();
|
||||
assertThat(jarFile.getEntry(this.libPath + "charlie-1.2.3.jar")).isNotNull();
|
||||
assertThat(jarFile.getEntry(this.libPath + "commons-lang3-3.9.jar")).isNotNull();
|
||||
assertThat(jarFile.getEntry(this.libPath + "spring-core-5.2.5.RELEASE.jar")).isNotNull();
|
||||
assertThat(jarFile.getEntry(this.libPath + "spring-jcl-5.2.5.RELEASE.jar")).isNotNull();
|
||||
@@ -347,8 +348,9 @@ abstract class AbstractBootArchiveIntegrationTests {
|
||||
assertThat(indexedLayers.get("dependencies")).containsExactlyElementsOf(expectedDependencies);
|
||||
assertThat(indexedLayers.get("spring-boot-loader")).containsExactly("org/");
|
||||
assertThat(indexedLayers.get("snapshot-dependencies")).containsExactlyElementsOf(expectedSnapshotDependencies);
|
||||
assertThat(indexedLayers.get("application")).containsExactly(getExpectedApplicationLayerContents(
|
||||
this.classesPath, this.libPath + "alpha-1.2.3.jar", this.libPath + "bravo-1.2.3.jar"));
|
||||
assertThat(indexedLayers.get("application"))
|
||||
.containsExactly(getExpectedApplicationLayerContents(this.classesPath, this.libPath + "alpha-1.2.3.jar",
|
||||
this.libPath + "bravo-1.2.3.jar", this.libPath + "charlie-1.2.3.jar"));
|
||||
BuildResult listLayers = this.gradleBuild.build("listLayers");
|
||||
assertThat(listLayers.task(":listLayers").getOutcome()).isEqualTo(TaskOutcome.SUCCESS);
|
||||
String listLayersOutput = listLayers.getOutput();
|
||||
@@ -417,6 +419,7 @@ abstract class AbstractBootArchiveIntegrationTests {
|
||||
assertThat(jarFile.getEntry(layerToolsJar)).isNotNull();
|
||||
assertThat(jarFile.getEntry(this.libPath + "alpha-1.2.3.jar")).isNotNull();
|
||||
assertThat(jarFile.getEntry(this.libPath + "bravo-1.2.3.jar")).isNotNull();
|
||||
assertThat(jarFile.getEntry(this.libPath + "charlie-1.2.3.jar")).isNotNull();
|
||||
assertThat(jarFile.getEntry(this.libPath + "commons-lang3-3.9.jar")).isNotNull();
|
||||
assertThat(jarFile.getEntry(this.libPath + "spring-core-5.2.5.RELEASE.jar")).isNotNull();
|
||||
assertThat(jarFile.getEntry(this.libPath + "spring-jcl-5.2.5.RELEASE.jar")).isNotNull();
|
||||
@@ -432,6 +435,7 @@ abstract class AbstractBootArchiveIntegrationTests {
|
||||
Set<String> expectedSubprojectDependencies = new TreeSet<>();
|
||||
expectedSubprojectDependencies.add(this.libPath + "alpha-1.2.3.jar");
|
||||
expectedSubprojectDependencies.add(this.libPath + "bravo-1.2.3.jar");
|
||||
expectedSubprojectDependencies.add(this.libPath + "charlie-1.2.3.jar");
|
||||
Set<String> expectedDependencies = new TreeSet<>();
|
||||
expectedDependencies.add(this.libPath + "spring-core-5.2.5.RELEASE.jar");
|
||||
expectedDependencies.add(this.libPath + "spring-jcl-5.2.5.RELEASE.jar");
|
||||
@@ -492,7 +496,7 @@ abstract class AbstractBootArchiveIntegrationTests {
|
||||
private void writeSettingsGradle() {
|
||||
try (PrintWriter writer = new PrintWriter(
|
||||
new FileWriter(new File(this.gradleBuild.getProjectDir(), "settings.gradle")))) {
|
||||
writer.println("include 'alpha', 'bravo'");
|
||||
writer.println("include 'alpha', 'bravo', 'charlie'");
|
||||
}
|
||||
catch (IOException ex) {
|
||||
throw new RuntimeException(ex);
|
||||
|
||||
@@ -116,7 +116,7 @@ class BootJarTests extends AbstractBootArchiveTests<BootJar> {
|
||||
|
||||
@Override
|
||||
void populateResolvedDependencies(Configuration configuration) {
|
||||
getTask().getResolvedDependencies().processConfiguration(configuration);
|
||||
getTask().getResolvedDependencies().processConfiguration(getTask().getProject(), configuration);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -116,7 +116,7 @@ class BootWarTests extends AbstractBootArchiveTests<BootWar> {
|
||||
|
||||
@Override
|
||||
void populateResolvedDependencies(Configuration configuration) {
|
||||
getTask().getResolvedDependencies().processConfiguration(configuration);
|
||||
getTask().getResolvedDependencies().processConfiguration(getTask().getProject(), configuration);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user