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

createArtifact() — spring-boot Function Reference

Architecture documentation for the createArtifact() function in JarTypeFilterTests.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 1 called by 5

Entity Profile

Dependency Diagram

graph TD
  3eb1e068_895c_1973_21dc_77c59e019c1f["createArtifact()"]
  65041735_1399_7be1_7af0_9b8b7c91fa38["whenArtifactHasNoJarTypeThenItIsIncluded()"]
  65041735_1399_7be1_7af0_9b8b7c91fa38 -->|calls| 3eb1e068_895c_1973_21dc_77c59e019c1f
  dd12eed6_3e81_3eea_77dc_ce35fc2032a5["whenArtifactHasJarTypeThatIsNotExcludedThenItIsIncluded()"]
  dd12eed6_3e81_3eea_77dc_ce35fc2032a5 -->|calls| 3eb1e068_895c_1973_21dc_77c59e019c1f
  e01b2d5a_12be_c2ba_da85_b9fac8192ae8["whenArtifactHasDependenciesStarterJarTypeThenItIsExcluded()"]
  e01b2d5a_12be_c2ba_da85_b9fac8192ae8 -->|calls| 3eb1e068_895c_1973_21dc_77c59e019c1f
  1e021d95_cfdf_de65_5c25_283cb314a7ec["whenArtifactHasAnnotationProcessorJarTypeThenItIsExcluded()"]
  1e021d95_cfdf_de65_5c25_283cb314a7ec -->|calls| 3eb1e068_895c_1973_21dc_77c59e019c1f
  230642a2_1584_9d53_5f8d_c4d836d78919["whenArtifactHasDevelopmentToolJarTypeThenItIsExcluded()"]
  230642a2_1584_9d53_5f8d_c4d836d78919 -->|calls| 3eb1e068_895c_1973_21dc_77c59e019c1f
  5dfc12a6_7139_7458_e971_7e51fb66135f["mockArtifact()"]
  3eb1e068_895c_1973_21dc_77c59e019c1f -->|calls| 5dfc12a6_7139_7458_e971_7e51fb66135f
  style 3eb1e068_895c_1973_21dc_77c59e019c1f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-maven-plugin/src/test/java/org/springframework/boot/maven/JarTypeFilterTests.java lines 75–89

	private Artifact createArtifact(@Nullable String springBootJarType) {
		Path jarPath = this.temp.resolve("test.jar");
		Manifest manifest = new Manifest();
		manifest.getMainAttributes().putValue("Manifest-Version", "1.0");
		if (springBootJarType != null) {
			manifest.getMainAttributes().putValue("Spring-Boot-Jar-Type", springBootJarType);
		}
		try {
			new JarOutputStream(new FileOutputStream(jarPath.toFile()), manifest).close();
		}
		catch (IOException ex) {
			throw new RuntimeException(ex);
		}
		return mockArtifact(jarPath);
	}

Domain

Subdomains

Called By

  • whenArtifactHasAnnotationProcessorJarTypeThenItIsExcluded()
  • whenArtifactHasDependenciesStarterJarTypeThenItIsExcluded()
  • whenArtifactHasDevelopmentToolJarTypeThenItIsExcluded()
  • whenArtifactHasJarTypeThatIsNotExcludedThenItIsIncluded()
  • whenArtifactHasNoJarTypeThenItIsIncluded()

Frequently Asked Questions

What does createArtifact() do?
createArtifact() is a function in the spring-boot codebase.
What does createArtifact() call?
createArtifact() calls 1 function(s): mockArtifact.
What calls createArtifact()?
createArtifact() is called by 5 function(s): whenArtifactHasAnnotationProcessorJarTypeThenItIsExcluded, whenArtifactHasDependenciesStarterJarTypeThenItIsExcluded, whenArtifactHasDevelopmentToolJarTypeThenItIsExcluded, whenArtifactHasJarTypeThatIsNotExcludedThenItIsIncluded, whenArtifactHasNoJarTypeThenItIsIncluded.

Analyze Your Own Codebase

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

Try Supermodel Free