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

configureBootTestRunTask() — spring-boot Function Reference

Architecture documentation for the configureBootTestRunTask() function in JavaPluginAction.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 4 called by 1

Entity Profile

Dependency Diagram

graph TD
  913bf49c_9c07_df96_ce37_44e9a0f0678f["configureBootTestRunTask()"]
  74d8bc31_4ba2_e112_795c_80c2cc344e68["execute()"]
  74d8bc31_4ba2_e112_795c_80c2cc344e68 -->|calls| 913bf49c_9c07_df96_ce37_44e9a0f0678f
  b1f4e7fa_6dcd_b75c_aa6b_c18c1f1bfb52["javaPluginExtension()"]
  913bf49c_9c07_df96_ce37_44e9a0f0678f -->|calls| b1f4e7fa_6dcd_b75c_aa6b_c18c1f1bfb52
  f716b505_786b_8a0f_3ef5_bdaf043f7d3b["classpath()"]
  913bf49c_9c07_df96_ce37_44e9a0f0678f -->|calls| f716b505_786b_8a0f_3ef5_bdaf043f7d3b
  62834ef2_58c4_85a5_f697_b49484bec757["getMainClass()"]
  913bf49c_9c07_df96_ce37_44e9a0f0678f -->|calls| 62834ef2_58c4_85a5_f697_b49484bec757
  959640cf_607b_be74_9274_6868bbe97f88["configureToolchainConvention()"]
  913bf49c_9c07_df96_ce37_44e9a0f0678f -->|calls| 959640cf_607b_be74_9274_6868bbe97f88
  style 913bf49c_9c07_df96_ce37_44e9a0f0678f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/plugin/JavaPluginAction.java lines 221–235

	private void configureBootTestRunTask(Project project, TaskProvider<ResolveMainClassName> resolveMainClassName) {
		Callable<FileCollection> classpath = () -> {
			SourceSet testSourceSet = javaPluginExtension(project).getSourceSets()
				.findByName(SourceSet.TEST_SOURCE_SET_NAME);
			Assert.state(testSourceSet != null, "'testSourceSet' must not be null");
			return testSourceSet.getRuntimeClasspath().filter(new JarTypeFileSpec());
		};
		project.getTasks().register("bootTestRun", BootRun.class, (run) -> {
			run.setDescription("Runs this project as a Spring Boot application using the test runtime classpath.");
			run.setGroup(ApplicationPlugin.APPLICATION_GROUP);
			run.classpath(classpath);
			run.getMainClass().convention(resolveMainClassName.flatMap(ResolveMainClassName::readMainClassName));
			configureToolchainConvention(project, run);
		});
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does configureBootTestRunTask() do?
configureBootTestRunTask() is a function in the spring-boot codebase.
What does configureBootTestRunTask() call?
configureBootTestRunTask() calls 4 function(s): classpath, configureToolchainConvention, getMainClass, javaPluginExtension.
What calls configureBootTestRunTask()?
configureBootTestRunTask() is called by 1 function(s): execute.

Analyze Your Own Codebase

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

Try Supermodel Free