sbomIsIncludedInUberArchive() — spring-boot Function Reference
Architecture documentation for the sbomIsIncludedInUberArchive() function in CyclonedxPluginActionIntegrationTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD a9b1503a_8dc7_b9b2_919f_6d6847292ee0["sbomIsIncludedInUberArchive()"] 9b220f26_9334_30c8_aac0_c4e3f8832314["sbomIsIncludedInUberJar()"] 9b220f26_9334_30c8_aac0_c4e3f8832314 -->|calls| a9b1503a_8dc7_b9b2_919f_6d6847292ee0 e70e0f3d_c148_d247_e939_6ffaa98fa4d2["sbomIsIncludedInUberWar()"] e70e0f3d_c148_d247_e939_6ffaa98fa4d2 -->|calls| a9b1503a_8dc7_b9b2_919f_6d6847292ee0 style a9b1503a_8dc7_b9b2_919f_6d6847292ee0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
build-plugin/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/plugin/CyclonedxPluginActionIntegrationTests.java lines 56–69
private void sbomIsIncludedInUberArchive(String taskName, String sbomLocationPrefix) throws IOException {
BuildResult result = this.gradleBuild.expectDeprecationWarningsWithAtLeastVersion("7.6.6").build(taskName);
BuildTask task = result.task(":cyclonedxBom");
assertThat(task).isNotNull().extracting(BuildTask::getOutcome).isEqualTo(TaskOutcome.SUCCESS);
File[] libs = new File(this.gradleBuild.getProjectDir(), "build/libs").listFiles();
assertThat(libs).hasSize(1);
try (JarFile jar = new JarFile(libs[0])) {
assertThat(jar.getManifest().getMainAttributes().getValue("Sbom-Format")).isEqualTo("CycloneDX");
String sbomLocation = jar.getManifest().getMainAttributes().getValue("Sbom-Location");
assertThat(sbomLocation).isEqualTo(sbomLocationPrefix + "META-INF/sbom/application.cdx.json");
List<String> entryNames = jar.stream().map(JarEntry::getName).toList();
assertThat(entryNames).contains(sbomLocation);
}
}
Domain
Subdomains
Called By
- sbomIsIncludedInUberJar()
- sbomIsIncludedInUberWar()
Source
Frequently Asked Questions
What does sbomIsIncludedInUberArchive() do?
sbomIsIncludedInUberArchive() is a function in the spring-boot codebase.
What calls sbomIsIncludedInUberArchive()?
sbomIsIncludedInUberArchive() is called by 2 function(s): sbomIsIncludedInUberJar, sbomIsIncludedInUberWar.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free