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

incrementalBuild() — spring-boot Function Reference

Architecture documentation for the incrementalBuild() function in IncrementalBuildMetadataGenerationTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  210b60d1_8500_ea27_13ab_0f78c2a55794["incrementalBuild()"]
  a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc["withProperty()"]
  210b60d1_8500_ea27_13ab_0f78c2a55794 -->|calls| a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc
  a7060ba0_7028_1911_946e_7c3090117119["fromSource()"]
  210b60d1_8500_ea27_13ab_0f78c2a55794 -->|calls| a7060ba0_7028_1911_946e_7c3090117119
  3a84f306_c04e_ed63_ecc7_7013edbb2681["withDefaultValue()"]
  210b60d1_8500_ea27_13ab_0f78c2a55794 -->|calls| 3a84f306_c04e_ed63_ecc7_7013edbb2681
  style 210b60d1_8500_ea27_13ab_0f78c2a55794 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/IncrementalBuildMetadataGenerationTests.java lines 38–61

	@Test
	void incrementalBuild() throws Exception {
		TestProject project = new TestProject(FooProperties.class, BarProperties.class);
		ConfigurationMetadata metadata = project.compile();
		assertThat(metadata)
			.has(Metadata.withProperty("foo.counter").fromSource(FooProperties.class).withDefaultValue(0));
		assertThat(metadata)
			.has(Metadata.withProperty("bar.counter").fromSource(BarProperties.class).withDefaultValue(0));
		metadata = project.compile();
		assertThat(metadata)
			.has(Metadata.withProperty("foo.counter").fromSource(FooProperties.class).withDefaultValue(0));
		assertThat(metadata)
			.has(Metadata.withProperty("bar.counter").fromSource(BarProperties.class).withDefaultValue(0));
		project.addSourceCode(BarProperties.class, BarProperties.class.getResourceAsStream("BarProperties.snippet"));
		metadata = project.compile();
		assertThat(metadata).has(Metadata.withProperty("bar.extra"));
		assertThat(metadata).has(Metadata.withProperty("foo.counter").withDefaultValue(0));
		assertThat(metadata).has(Metadata.withProperty("bar.counter").withDefaultValue(0));
		project.revert(BarProperties.class);
		metadata = project.compile();
		assertThat(metadata).isNotEqualTo(Metadata.withProperty("bar.extra"));
		assertThat(metadata).has(Metadata.withProperty("foo.counter").withDefaultValue(0));
		assertThat(metadata).has(Metadata.withProperty("bar.counter").withDefaultValue(0));
	}

Domain

Subdomains

Frequently Asked Questions

What does incrementalBuild() do?
incrementalBuild() is a function in the spring-boot codebase.
What does incrementalBuild() call?
incrementalBuild() calls 3 function(s): fromSource, withDefaultValue, withProperty.

Analyze Your Own Codebase

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

Try Supermodel Free