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

configureJarTask() — spring-boot Function Reference

Architecture documentation for the configureJarTask() function in CyclonedxPluginAction.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  0375468b_0260_d0e0_957d_bd845b6938e3["configureJarTask()"]
  ca32271e_7181_929e_7078_6d0f859a3e16["configureBootJarTask()"]
  ca32271e_7181_929e_7078_6d0f859a3e16 -->|calls| 0375468b_0260_d0e0_957d_bd845b6938e3
  5f062490_4b09_255c_a587_da46d3be14f3["configureBootWarTask()"]
  5f062490_4b09_255c_a587_da46d3be14f3 -->|calls| 0375468b_0260_d0e0_957d_bd845b6938e3
  style 0375468b_0260_d0e0_957d_bd845b6938e3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/plugin/CyclonedxPluginAction.java lines 111–120

	private void configureJarTask(Jar task, TaskProvider<CyclonedxAggregateTask> cycloneDxTaskProvider,
			String sbomLocationPrefix) {
		Provider<String> sbomFileName = cycloneDxTaskProvider
			.map((cycloneDxTask) -> "META-INF/sbom/" + cycloneDxTask.getJsonOutput().get().getAsFile().getName());
		task.manifest((manifest) -> {
			manifest.getAttributes().put("Sbom-Format", "CycloneDX");
			manifest.getAttributes()
				.put("Sbom-Location", sbomFileName.map((fileName) -> sbomLocationPrefix + fileName));
		});
	}

Domain

Subdomains

Frequently Asked Questions

What does configureJarTask() do?
configureJarTask() is a function in the spring-boot codebase.
What calls configureJarTask()?
configureJarTask() is called by 2 function(s): configureBootJarTask, configureBootWarTask.

Analyze Your Own Codebase

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

Try Supermodel Free