Create a new layer for loader classes
Create a dedicated layer that is used to hold the launcher support classes. The layer sits between `dependencies` and `snapshot-dependencies` so that the layer is sensible for both SNAPSHOT and RELEASE versions of Spring Boot Closes gh-20529
This commit is contained in:
@@ -100,7 +100,7 @@ class BootJarTests extends AbstractBootArchiveTests<TestBootJar> {
|
||||
@Test
|
||||
void whenJarIsLayeredThenLayersIndexIsPresentAndListsLayersInOrder() throws IOException {
|
||||
try (JarFile jarFile = new JarFile(createLayeredJar())) {
|
||||
assertThat(entryLines(jarFile, "BOOT-INF/layers.idx")).containsExactly("dependencies",
|
||||
assertThat(entryLines(jarFile, "BOOT-INF/layers.idx")).containsExactly("dependencies", "spring-boot-loader",
|
||||
"snapshot-dependencies", "application");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user