Class BuildMetadataResolver

java.lang.Object
io.spring.initializr.generator.spring.build.BuildMetadataResolver

public class BuildMetadataResolver extends Object
Resolve metadata information from the build.
Author:
Stephane Nicoll, Moritz Halbritter
  • Constructor Details

  • Method Details

    • dependencies

      public Stream<Dependency> dependencies(Build build)
      Return a Stream of dependency metadata that are defined by the specified Build. If a dependency has no metadata it is skipped.
      Parameters:
      build - the build to query
      Returns:
      a stream of dependency metadata
    • hasFacet

      public boolean hasFacet(Build build, String facet)
      Specify if the given Build has the given facet enabled.
      Parameters:
      build - the build to query
      facet - the facet to query
      Returns:
      true if this build defines at least a dependency with that facet