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

createJar() — spring-boot Function Reference

Architecture documentation for the createJar() function in AbstractBootArchiveIntegrationTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  202ab167_c5d6_4d67_16f0_a6dd958d237a["createJar()"]
  007270a6_c2ba_e012_ba95_3128a7862fe7["createStandardJar()"]
  007270a6_c2ba_e012_ba95_3128a7862fe7 -->|calls| 202ab167_c5d6_4d67_16f0_a6dd958d237a
  ce76af23_3eb6_3d1f_bb02_632924b4d9b9["createDependenciesStarterJar()"]
  ce76af23_3eb6_3d1f_bb02_632924b4d9b9 -->|calls| 202ab167_c5d6_4d67_16f0_a6dd958d237a
  2dfa0610_066b_a110_32b0_81f9029bea5d["createDependenciesDeveloperToolsJar()"]
  2dfa0610_066b_a110_32b0_81f9029bea5d -->|calls| 202ab167_c5d6_4d67_16f0_a6dd958d237a
  style 202ab167_c5d6_4d67_16f0_a6dd958d237a 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/AbstractBootArchiveIntegrationTests.java lines 681–688

	private void createJar(File location, Consumer<Attributes> attributesConfigurer) throws IOException {
		location.getParentFile().mkdirs();
		Manifest manifest = new Manifest();
		Attributes attributes = manifest.getMainAttributes();
		attributes.put(Attributes.Name.MANIFEST_VERSION, "1.0");
		attributesConfigurer.accept(attributes);
		new JarOutputStream(new FileOutputStream(location), manifest).close();
	}

Domain

Subdomains

Frequently Asked Questions

What does createJar() do?
createJar() is a function in the spring-boot codebase.
What calls createJar()?
createJar() is called by 3 function(s): createDependenciesDeveloperToolsJar, createDependenciesStarterJar, createStandardJar.

Analyze Your Own Codebase

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

Try Supermodel Free