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

createJar() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  c1ecc89b_6dc9_6028_74cb_3506cdc2e5b4["createJar()"]
  ba12e528_ef4e_2696_bab5_20536226b843["createStandardJar()"]
  ba12e528_ef4e_2696_bab5_20536226b843 -->|calls| c1ecc89b_6dc9_6028_74cb_3506cdc2e5b4
  45e8b396_4fcf_d1f0_a9ab_4c28c7662534["createDependenciesStarterJar()"]
  45e8b396_4fcf_d1f0_a9ab_4c28c7662534 -->|calls| c1ecc89b_6dc9_6028_74cb_3506cdc2e5b4
  style c1ecc89b_6dc9_6028_74cb_3506cdc2e5b4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/run/BootTestRunIntegrationTests.java lines 181–188

	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 2 function(s): createDependenciesStarterJar, createStandardJar.

Analyze Your Own Codebase

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

Try Supermodel Free