Home / Function/ archiveShouldBeLayeredByDefault() — spring-boot Function Reference

archiveShouldBeLayeredByDefault() — spring-boot Function Reference

Architecture documentation for the archiveShouldBeLayeredByDefault() function in AbstractBootArchiveTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  544324ce_1c71_1955_946b_542dcc1fb9a8["archiveShouldBeLayeredByDefault()"]
  9965e018_12f2_62c4_b30a_13fa94b98091["addContent()"]
  544324ce_1c71_1955_946b_542dcc1fb9a8 -->|calls| 9965e018_12f2_62c4_b30a_13fa94b98091
  6735338a_2770_d6bf_59a2_0a9fa6f0b3fc["executeTask()"]
  544324ce_1c71_1955_946b_542dcc1fb9a8 -->|calls| 6735338a_2770_d6bf_59a2_0a9fa6f0b3fc
  5645c4d4_f43b_2768_d537_d5683623dc04["getEntryNames()"]
  544324ce_1c71_1955_946b_542dcc1fb9a8 -->|calls| 5645c4d4_f43b_2768_d537_d5683623dc04
  style 544324ce_1c71_1955_946b_542dcc1fb9a8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/bundling/AbstractBootArchiveTests.java lines 447–459

	@Test
	void archiveShouldBeLayeredByDefault() throws IOException {
		addContent();
		executeTask();
		try (JarFile jarFile = new JarFile(this.task.getArchiveFile().get().getAsFile())) {
			assertThat(jarFile.getManifest().getMainAttributes().getValue("Spring-Boot-Classes"))
				.isEqualTo(this.classesPath);
			assertThat(jarFile.getManifest().getMainAttributes().getValue("Spring-Boot-Lib")).isEqualTo(this.libPath);
			assertThat(jarFile.getManifest().getMainAttributes().getValue("Spring-Boot-Layers-Index"))
				.isEqualTo(this.indexPath + "layers.idx");
			assertThat(getEntryNames(jarFile)).contains(this.libPath + JarModeLibrary.TOOLS.getName());
		}
	}

Domain

Subdomains

Frequently Asked Questions

What does archiveShouldBeLayeredByDefault() do?
archiveShouldBeLayeredByDefault() is a function in the spring-boot codebase.
What does archiveShouldBeLayeredByDefault() call?
archiveShouldBeLayeredByDefault() calls 3 function(s): addContent, executeTask, getEntryNames.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free