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

asLibrarySelector() — spring-boot Function Reference

Architecture documentation for the asLibrarySelector() function in LayeredSpec.java from the spring-boot codebase.

Function java Archiving LauncherConfig calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  6120dc04_0e25_9622_0a91_0531473a5796["asLibrarySelector()"]
  698af27e_4c5b_abad_f37d_9ca62f23e209["asSelectors()"]
  698af27e_4c5b_abad_f37d_9ca62f23e209 -->|calls| 6120dc04_0e25_9622_0a91_0531473a5796
  7cade069_d0d6_44b9_bd86_75e201a55c4e["getIntoLayer()"]
  6120dc04_0e25_9622_0a91_0531473a5796 -->|calls| 7cade069_d0d6_44b9_bd86_75e201a55c4e
  0ed409cf_b688_504d_d792_b32e25175882["getIncludes()"]
  6120dc04_0e25_9622_0a91_0531473a5796 -->|calls| 0ed409cf_b688_504d_d792_b32e25175882
  12383a6e_53cc_db58_5542_edb9b91a0ddb["getExcludes()"]
  6120dc04_0e25_9622_0a91_0531473a5796 -->|calls| 12383a6e_53cc_db58_5542_edb9b91a0ddb
  style 6120dc04_0e25_9622_0a91_0531473a5796 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/LayeredSpec.java lines 301–316

		ContentSelector<Library> asLibrarySelector(Function<String, ContentFilter<Library>> filterFactory) {
			Layer layer = new Layer(getIntoLayer());
			List<ContentFilter<Library>> includeFilters = getIncludes().stream()
				.map(filterFactory)
				.collect(Collectors.toCollection(ArrayList::new));
			if (this.includeProjectDependencies) {
				includeFilters.add(Library::isLocal);
			}
			List<ContentFilter<Library>> excludeFilters = getExcludes().stream()
				.map(filterFactory)
				.collect(Collectors.toCollection(ArrayList::new));
			if (this.excludeProjectDependencies) {
				excludeFilters.add(Library::isLocal);
			}
			return new IncludeExcludeContentSelector<>(layer, includeFilters, excludeFilters);
		}

Domain

Subdomains

Calls

  • getExcludes()
  • getIncludes()
  • getIntoLayer()

Called By

Frequently Asked Questions

What does asLibrarySelector() do?
asLibrarySelector() is a function in the spring-boot codebase.
What does asLibrarySelector() call?
asLibrarySelector() calls 3 function(s): getExcludes, getIncludes, getIntoLayer.
What calls asLibrarySelector()?
asLibrarySelector() is called by 1 function(s): asSelectors.

Analyze Your Own Codebase

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

Try Supermodel Free