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

doWithLibraries() — spring-boot Function Reference

Architecture documentation for the doWithLibraries() function in ArtifactsLibraries.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  b90d033a_04b3_6f75_cb80_b215ee9728a0["doWithLibraries()"]
  86423096_f568_0d81_b582_f8109a06784f["getDuplicates()"]
  b90d033a_04b3_6f75_cb80_b215ee9728a0 -->|calls| 86423096_f568_0d81_b582_f8109a06784f
  0e6438d3_62ff_1aa6_5ebb_bbf99b70b8d3["getFileName()"]
  b90d033a_04b3_6f75_cb80_b215ee9728a0 -->|calls| 0e6438d3_62ff_1aa6_5ebb_bbf99b70b8d3
  b514042b_e90f_e18c_de48_0f8511552458["getGroupId()"]
  b90d033a_04b3_6f75_cb80_b215ee9728a0 -->|calls| b514042b_e90f_e18c_de48_0f8511552458
  8da5de0c_a9ba_92f4_0889_7b146dc9cb1a["ArtifactLibraryCoordinates()"]
  b90d033a_04b3_6f75_cb80_b215ee9728a0 -->|calls| 8da5de0c_a9ba_92f4_0889_7b146dc9cb1a
  23c64939_2ff6_7220_dd1c_7b5ce08ba9d1["isUnpackRequired()"]
  b90d033a_04b3_6f75_cb80_b215ee9728a0 -->|calls| 23c64939_2ff6_7220_dd1c_7b5ce08ba9d1
  2cfd8e3c_4403_2b77_e94d_341774281563["isLocal()"]
  b90d033a_04b3_6f75_cb80_b215ee9728a0 -->|calls| 2cfd8e3c_4403_2b77_e94d_341774281563
  style b90d033a_04b3_6f75_cb80_b215ee9728a0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/ArtifactsLibraries.java lines 105–126

	@Override
	public void doWithLibraries(LibraryCallback callback) throws IOException {
		Set<String> duplicates = getDuplicates(this.artifacts);
		for (Artifact artifact : this.artifacts) {
			String name = getFileName(artifact);
			File file = artifact.getFile();
			LibraryScope scope = SCOPES.get(artifact.getScope());
			if (scope == null || file == null) {
				continue;
			}
			if (duplicates.contains(name)) {
				this.log.debug("Duplicate found: " + name);
				name = artifact.getGroupId() + "-" + name;
				this.log.debug("Renamed to: " + name);
			}
			LibraryCoordinates coordinates = new ArtifactLibraryCoordinates(artifact);
			boolean unpackRequired = isUnpackRequired(artifact);
			boolean local = isLocal(artifact);
			boolean included = this.includedArtifacts.contains(artifact);
			callback.library(new Library(name, file, scope, coordinates, unpackRequired, local, included));
		}
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does doWithLibraries() do?
doWithLibraries() is a function in the spring-boot codebase.
What does doWithLibraries() call?
doWithLibraries() calls 6 function(s): ArtifactLibraryCoordinates, getDuplicates, getFileName, getGroupId, isLocal, isUnpackRequired.

Analyze Your Own Codebase

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

Try Supermodel Free