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

apply() — spring-boot Function Reference

Architecture documentation for the apply() function in SpringBootAotPlugin.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  089b6f3c_f3d0_8ce3_0849_35cf898f19a5["apply()"]
  92922bdc_a4e6_c220_289f_5c5e5a663265["configureSourceSet()"]
  089b6f3c_f3d0_8ce3_0849_35cf898f19a5 -->|calls| 92922bdc_a4e6_c220_289f_5c5e5a663265
  41a48b81_3156_11bb_7023_cd90c2cb3988["registerProcessAotTask()"]
  089b6f3c_f3d0_8ce3_0849_35cf898f19a5 -->|calls| 41a48b81_3156_11bb_7023_cd90c2cb3988
  a04f1c05_1449_0877_a302_264dfaa4abdd["registerProcessTestAotTask()"]
  089b6f3c_f3d0_8ce3_0849_35cf898f19a5 -->|calls| a04f1c05_1449_0877_a302_264dfaa4abdd
  style 089b6f3c_f3d0_8ce3_0849_35cf898f19a5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/plugin/SpringBootAotPlugin.java lines 77–92

	@Override
	public void apply(Project project) {
		PluginContainer plugins = project.getPlugins();
		plugins.withType(JavaPlugin.class).all((javaPlugin) -> {
			JavaPluginExtension javaPluginExtension = project.getExtensions().getByType(JavaPluginExtension.class);
			SourceSetContainer sourceSets = javaPluginExtension.getSourceSets();
			SourceSet mainSourceSet = sourceSets.getByName(SourceSet.MAIN_SOURCE_SET_NAME);
			SourceSet aotSourceSet = configureSourceSet(project, AOT_SOURCE_SET_NAME, mainSourceSet);
			SourceSet testSourceSet = sourceSets.getByName(SourceSet.TEST_SOURCE_SET_NAME);
			SourceSet aotTestSourceSet = configureSourceSet(project, AOT_TEST_SOURCE_SET_NAME, testSourceSet);
			plugins.withType(SpringBootPlugin.class).all((bootPlugin) -> {
				registerProcessAotTask(project, aotSourceSet, mainSourceSet);
				registerProcessTestAotTask(project, mainSourceSet, aotTestSourceSet, testSourceSet);
			});
		});
	}

Domain

Subdomains

Frequently Asked Questions

What does apply() do?
apply() is a function in the spring-boot codebase.
What does apply() call?
apply() calls 3 function(s): configureSourceSet, registerProcessAotTask, registerProcessTestAotTask.

Analyze Your Own Codebase

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

Try Supermodel Free