find() — spring-boot Function Reference
Architecture documentation for the find() function in ResolvedDependencies.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 77cb2c8d_961b_53e6_776c_9ab4b81d8e52["find()"] 9f323cc6_923c_b9ae_1b0b_66e4ce5c4614["findArtifactIdentifier()"] 77cb2c8d_961b_53e6_776c_9ab4b81d8e52 -->|calls| 9f323cc6_923c_b9ae_1b0b_66e4ce5c4614 13c636c2_7392_f781_2d22_7431c2b55dda["DependencyDescriptor()"] 77cb2c8d_961b_53e6_776c_9ab4b81d8e52 -->|calls| 13c636c2_7392_f781_2d22_7431c2b55dda style 77cb2c8d_961b_53e6_776c_9ab4b81d8e52 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
build-plugin/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/ResolvedDependencies.java lines 94–113
@Nullable DependencyDescriptor find(File file) {
ComponentArtifactIdentifier id = findArtifactIdentifier(file);
if (id == null) {
return null;
}
if (id instanceof ModuleComponentArtifactIdentifier moduleComponentId) {
ModuleComponentIdentifier moduleId = moduleComponentId.getComponentIdentifier();
return new DependencyDescriptor(
LibraryCoordinates.of(moduleId.getGroup(), moduleId.getModule(), moduleId.getVersion()), false);
}
ComponentIdentifier componentIdentifier = id.getComponentIdentifier();
if (componentIdentifier instanceof ProjectComponentIdentifier projectComponentId) {
String projectPath = projectComponentId.getProjectPath();
LibraryCoordinates projectCoordinates = this.projectCoordinatesByPath.get(projectPath);
if (projectCoordinates != null) {
return new DependencyDescriptor(projectCoordinates, true);
}
}
return null;
}
Domain
Subdomains
Calls
- DependencyDescriptor()
- findArtifactIdentifier()
Source
Frequently Asked Questions
What does find() do?
find() is a function in the spring-boot codebase.
What does find() call?
find() calls 2 function(s): DependencyDescriptor, findArtifactIdentifier.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free