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

createAotProcessingClasspath() — spring-boot Function Reference

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

Function java GradlePlugin DslExtensions calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  b7addfa9_b76d_20c0_2951_852d0497d8b4["createAotProcessingClasspath()"]
  41a48b81_3156_11bb_7023_cd90c2cb3988["registerProcessAotTask()"]
  41a48b81_3156_11bb_7023_cd90c2cb3988 -->|calls| b7addfa9_b76d_20c0_2951_852d0497d8b4
  a04f1c05_1449_0877_a302_264dfaa4abdd["registerProcessTestAotTask()"]
  a04f1c05_1449_0877_a302_264dfaa4abdd -->|calls| b7addfa9_b76d_20c0_2951_852d0497d8b4
  663f2195_2eab_28df_9255_3a9f3d063c4d["removeDevelopmentOnly()"]
  b7addfa9_b76d_20c0_2951_852d0497d8b4 -->|calls| 663f2195_2eab_28df_9255_3a9f3d063c4d
  style b7addfa9_b76d_20c0_2951_852d0497d8b4 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 165–188

	@SuppressWarnings({ "unchecked", "rawtypes" })
	private Configuration createAotProcessingClasspath(Project project, String taskName, SourceSet inputSourceSet,
			Set<String> developmentOnlyConfigurationNames) {
		Configuration base = project.getConfigurations()
			.getByName(inputSourceSet.getRuntimeClasspathConfigurationName());
		return project.getConfigurations().create(taskName + "Classpath", (classpath) -> {
			classpath.setCanBeConsumed(false);
			if (!classpath.isCanBeResolved()) {
				throw new IllegalStateException("Unexpected");
			}
			classpath.setCanBeResolved(true);
			classpath.setDescription("Classpath of the " + taskName + " task.");
			removeDevelopmentOnly(base.getExtendsFrom(), developmentOnlyConfigurationNames)
				.forEach(classpath::extendsFrom);
			classpath.attributes((attributes) -> {
				ProviderFactory providers = project.getProviders();
				AttributeContainer baseAttributes = base.getAttributes();
				for (Attribute attribute : baseAttributes.keySet()) {
					attributes.attributeProvider(attribute,
							providers.provider(() -> baseAttributes.getAttribute(attribute)));
				}
			});
		});
	}

Domain

Subdomains

Calls

  • removeDevelopmentOnly()

Frequently Asked Questions

What does createAotProcessingClasspath() do?
createAotProcessingClasspath() is a function in the spring-boot codebase.
What does createAotProcessingClasspath() call?
createAotProcessingClasspath() calls 1 function(s): removeDevelopmentOnly.
What calls createAotProcessingClasspath()?
createAotProcessingClasspath() is called by 2 function(s): registerProcessAotTask, registerProcessTestAotTask.

Analyze Your Own Codebase

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

Try Supermodel Free