Class BuildMetadataResolver
java.lang.Object
io.spring.initializr.generator.spring.build.BuildMetadataResolver
Resolve metadata information from the build.
- Author:
- Stephane Nicoll, Moritz Halbritter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondependencies
(Build build) boolean
Specify if the givenBuild
has the givenfacet
enabled.
-
Constructor Details
-
BuildMetadataResolver
-
-
Method Details
-
dependencies
Return aStream
ofdependency metadata
that are defined by the specifiedBuild
. If a dependency has no metadata it is skipped.- Parameters:
build
- the build to query- Returns:
- a stream of dependency metadata
-
hasFacet
Specify if the givenBuild
has the givenfacet
enabled.- Parameters:
build
- the build to queryfacet
- the facet to query- Returns:
true
if this build defines at least a dependency with that facet
-