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

jarTypeFilteringIsApplied() — spring-boot Function Reference

Architecture documentation for the jarTypeFilteringIsApplied() function in AbstractBootArchiveIntegrationTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  b029ceef_6751_2722_478e_dca18f5bacd1["jarTypeFilteringIsApplied()"]
  ce76af23_3eb6_3d1f_bb02_632924b4d9b9["createDependenciesStarterJar()"]
  b029ceef_6751_2722_478e_dca18f5bacd1 -->|calls| ce76af23_3eb6_3d1f_bb02_632924b4d9b9
  2dfa0610_066b_a110_32b0_81f9029bea5d["createDependenciesDeveloperToolsJar()"]
  b029ceef_6751_2722_478e_dca18f5bacd1 -->|calls| 2dfa0610_066b_a110_32b0_81f9029bea5d
  007270a6_c2ba_e012_ba95_3128a7862fe7["createStandardJar()"]
  b029ceef_6751_2722_478e_dca18f5bacd1 -->|calls| 007270a6_c2ba_e012_ba95_3128a7862fe7
  style b029ceef_6751_2722_478e_dca18f5bacd1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/bundling/AbstractBootArchiveIntegrationTests.java lines 245–261

	@TestTemplate
	void jarTypeFilteringIsApplied() throws IOException {
		File flatDirRepository = new File(this.gradleBuild.getProjectDir(), "repository");
		createDependenciesStarterJar(new File(flatDirRepository, "starter.jar"));
		createDependenciesDeveloperToolsJar(new File(flatDirRepository, "devonly.jar"));
		createStandardJar(new File(flatDirRepository, "standard.jar"));
		BuildTask task = this.gradleBuild.build(this.taskName).task(":" + this.taskName);
		assertThat(task).isNotNull();
		assertThat(task.getOutcome()).isEqualTo(TaskOutcome.SUCCESS);
		try (JarFile jarFile = new JarFile(new File(this.gradleBuild.getProjectDir(), "build/libs").listFiles()[0])) {
			Stream<String> libEntryNames = jarFile.stream()
				.filter((entry) -> !entry.isDirectory())
				.map(JarEntry::getName)
				.filter((name) -> name.startsWith(this.libPath));
			assertThat(libEntryNames).containsExactly(this.libPath + "standard.jar");
		}
	}

Domain

Subdomains

Frequently Asked Questions

What does jarTypeFilteringIsApplied() do?
jarTypeFilteringIsApplied() is a function in the spring-boot codebase.
What does jarTypeFilteringIsApplied() call?
jarTypeFilteringIsApplied() calls 3 function(s): createDependenciesDeveloperToolsJar, createDependenciesStarterJar, createStandardJar.

Analyze Your Own Codebase

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

Try Supermodel Free