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

buildRepository() — spring-boot Function Reference

Architecture documentation for the buildRepository() function in ChangelogGenerator.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  9a8b3b8d_de9c_3d38_fd3a_d69a26a5b2d9["buildRepository()"]
  445f9cd2_d69e_d252_6131_687b09471360["generate()"]
  445f9cd2_d69e_d252_6131_687b09471360 -->|calls| 9a8b3b8d_de9c_3d38_fd3a_d69a26a5b2d9
  b26f93b5_53e1_8e1d_36ee_ab36f6f33ea3["create()"]
  9a8b3b8d_de9c_3d38_fd3a_d69a26a5b2d9 -->|calls| b26f93b5_53e1_8e1d_36ee_ab36f6f33ea3
  d8241149_1bf3_ad4e_0b4d_6cb07e5b6189["withJsonResource()"]
  9a8b3b8d_de9c_3d38_fd3a_d69a26a5b2d9 -->|calls| d8241149_1bf3_ad4e_0b4d_6cb07e5b6189
  b640440c_db31_009f_521d_10e726bf3482["build()"]
  9a8b3b8d_de9c_3d38_fd3a_d69a26a5b2d9 -->|calls| b640440c_db31_009f_521d_10e726bf3482
  style 9a8b3b8d_de9c_3d38_fd3a_d69a26a5b2d9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-metadata-changelog-generator/src/main/java/org/springframework/boot/configurationmetadata/changelog/ChangelogGenerator.java lines 63–81

	static ConfigurationMetadataRepository buildRepository(File directory) {
		ConfigurationMetadataRepositoryJsonBuilder builder = ConfigurationMetadataRepositoryJsonBuilder.create();
		File[] files = directory.listFiles();
		if (files == null) {
			throw new IllegalStateException("'files' must not be null");
		}
		for (File file : files) {
			try (JarFile jarFile = new JarFile(file)) {
				JarEntry metadataEntry = jarFile.getJarEntry("META-INF/spring-configuration-metadata.json");
				if (metadataEntry != null) {
					builder.withJsonResource(jarFile.getInputStream(metadataEntry));
				}
			}
			catch (IOException ex) {
				throw new RuntimeException(ex);
			}
		}
		return builder.build();
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does buildRepository() do?
buildRepository() is a function in the spring-boot codebase.
What does buildRepository() call?
buildRepository() calls 3 function(s): build, create, withJsonResource.
What calls buildRepository()?
buildRepository() is called by 1 function(s): generate.

Analyze Your Own Codebase

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

Try Supermodel Free