Class ProjectDependencyConfigImpl

java.lang.Object
io.quarkus.domino.ProjectDependencyConfigImpl
All Implemented Interfaces:
ProjectDependencyConfig

public class ProjectDependencyConfigImpl extends Object implements ProjectDependencyConfig
  • Method Details

    • getProductInfo

      public ProductInfo getProductInfo()
      Description copied from interface: ProjectDependencyConfig
      Information about the product whose dependencies are to be analyzed. Used primarily when generating SBOMs.
      Specified by:
      getProductInfo in interface ProjectDependencyConfig
      Returns:
      information about the product whose dependencies are to be analyzed
    • getProjectDir

      public Path getProjectDir()
      Description copied from interface: ProjectDependencyConfig
      Project directory
      Specified by:
      getProjectDir in interface ProjectDependencyConfig
      Returns:
      project directory
    • getProjectBom

      public io.quarkus.maven.dependency.ArtifactCoords getProjectBom()
      Description copied from interface: ProjectDependencyConfig
      Project BOM
      Specified by:
      getProjectBom in interface ProjectDependencyConfig
      Returns:
      project BOM
    • getNonProjectBoms

      public List<io.quarkus.maven.dependency.ArtifactCoords> getNonProjectBoms()
      Description copied from interface: ProjectDependencyConfig
      BOMs that should be enforced when resolving dependencies but should not be added as project artifacts.
      Specified by:
      getNonProjectBoms in interface ProjectDependencyConfig
      Returns:
      BOMs that should be enforced when resolving dependencies but should not be added as project artifacts
    • getProjectArtifacts

      public Collection<io.quarkus.maven.dependency.ArtifactCoords> getProjectArtifacts()
      Description copied from interface: ProjectDependencyConfig
      Artifacts that should be used as roots of dependency trees during analysis.
      Specified by:
      getProjectArtifacts in interface ProjectDependencyConfig
      Returns:
      artifacts that should be used as roots of dependency trees during analysis
    • getIncludeArtifacts

      public Collection<io.quarkus.maven.dependency.ArtifactCoords> getIncludeArtifacts()
      Specified by:
      getIncludeArtifacts in interface ProjectDependencyConfig
    • getIncludePatterns

      public Collection<io.quarkus.maven.dependency.ArtifactCoords> getIncludePatterns()
      Description copied from interface: ProjectDependencyConfig
      Artifact coordinates patterns that should be included when walking dependency trees.
      Specified by:
      getIncludePatterns in interface ProjectDependencyConfig
      Returns:
      artifact coordinates patterns that should be included when walking dependency trees
    • getExcludePatterns

      public Collection<io.quarkus.maven.dependency.ArtifactCoords> getExcludePatterns()
      Description copied from interface: ProjectDependencyConfig
      Artifact coordinates patterns that should be skipped along with their dependencies when walking dependency trees.
      Specified by:
      getExcludePatterns in interface ProjectDependencyConfig
      Returns:
      artifact coordinates patterns that should be skipped along with their dependencies when walking dependency trees
    • getExcludeScopes

      public Collection<String> getExcludeScopes()
      Description copied from interface: ProjectDependencyConfig
      Dependency scopes that should be excluded resolving dependencies of root artifact. If not configured, provided and test scoped dependencies will be excluded by default.
      Specified by:
      getExcludeScopes in interface ProjectDependencyConfig
      Returns:
      dependency scopes that should be excluded resolving dependencies of root artifact
    • isIncludeNonManaged

      public boolean isIncludeNonManaged()
      Description copied from interface: ProjectDependencyConfig
      Whether to exclude dependencies (and their transitive dependencies) that aren't managed in the BOM. The default is true.
      Specified by:
      isIncludeNonManaged in interface ProjectDependencyConfig
      Returns:
      whether non-managed dependencies should be included
    • isExcludeParentPoms

      public boolean isExcludeParentPoms()
      Description copied from interface: ProjectDependencyConfig
      Whether to exclude parent POMs from the list of artifacts to be built from source
      Specified by:
      isExcludeParentPoms in interface ProjectDependencyConfig
      Returns:
      whether to exclude parent POMs
    • isExcludeBomImports

      public boolean isExcludeBomImports()
      Description copied from interface: ProjectDependencyConfig
      Whether to exclude BOMs imported in the POMs of artifacts to be built from the list of artifacts to be built from source
      Specified by:
      isExcludeBomImports in interface ProjectDependencyConfig
      Returns:
      whether to exclude BOM imports
    • getLevel

      public int getLevel()
      Description copied from interface: ProjectDependencyConfig
      The depth level of a dependency tree of each supported Quarkus extension to capture. Setting the level to 0 will target the supported extension artifacts themselves. Setting the level to 1, will target the supported extension artifacts plus their direct dependencies. If the level is not specified, the default will be -1, which means all the levels.
      Specified by:
      getLevel in interface ProjectDependencyConfig
      Returns:
      dependency level
    • isVerboseGraphs

      public boolean isVerboseGraphs()
      Description copied from interface: ProjectDependencyConfig
      Whether verbose dependency graphs should be enabled in the underlying dependency resolver. This means exposing information about winning nodes during conflict resolution.
      Specified by:
      isVerboseGraphs in interface ProjectDependencyConfig
      Returns:
      whether verbose dependency graphs are enabled in the resolver
    • isLogArtifactsToBuild

      public boolean isLogArtifactsToBuild()
      Description copied from interface: ProjectDependencyConfig
      Whether to log the coordinates of the artifacts captured down to the depth specified. The default is true.
      Specified by:
      isLogArtifactsToBuild in interface ProjectDependencyConfig
      Returns:
      whether to log complete artifacts coordinates
    • isLogModulesToBuild

      public boolean isLogModulesToBuild()
      Description copied from interface: ProjectDependencyConfig
      Whether to log the module GAVs the artifacts to be built belongs to instead of all the complete artifact coordinates to be built. If this option is enabled, it overrides ProjectDependencyConfig.isLogArtifactsToBuild()
      Specified by:
      isLogModulesToBuild in interface ProjectDependencyConfig
      Returns:
      whether to log module coords as GAVs instead of complete artifact coordinates
    • isLogTrees

      public boolean isLogTrees()
      Description copied from interface: ProjectDependencyConfig
      Whether to log the dependency trees walked down to the depth specified. The default is false.
      Specified by:
      isLogTrees in interface ProjectDependencyConfig
      Returns:
      whether to log dependency trees
    • getLogTreesFor

      public String getLogTreesFor()
      Description copied from interface: ProjectDependencyConfig
      Comma-separated list of artifacts to log dependency trees for.
      Specified by:
      getLogTreesFor in interface ProjectDependencyConfig
      Returns:
      comma-separated list of artifacts to log dependency trees for
    • isLogRemaining

      public boolean isLogRemaining()
      Description copied from interface: ProjectDependencyConfig
      Whether to log the coordinates of the artifacts below the depth specified. The default is false.
      Specified by:
      isLogRemaining in interface ProjectDependencyConfig
      Returns:
      whether to log remaining artifacts
    • isLogSummary

      public boolean isLogSummary()
      Description copied from interface: ProjectDependencyConfig
      Whether to log the summary at the end. The default is true.
      Specified by:
      isLogSummary in interface ProjectDependencyConfig
      Returns:
      whether to log summary
    • isLogNonManagedVisitied

      public boolean isLogNonManagedVisitied()
      Description copied from interface: ProjectDependencyConfig
      Whether to log visited non-managed dependencies.
      Specified by:
      isLogNonManagedVisitied in interface ProjectDependencyConfig
      Returns:
      whether to log visited non-managed dependencies
    • isLogCodeRepos

      public boolean isLogCodeRepos()
      Description copied from interface: ProjectDependencyConfig
      Whether to log code repository info for the artifacts to be built from source
      Specified by:
      isLogCodeRepos in interface ProjectDependencyConfig
      Returns:
      whether to log code repositories
    • isLogCodeRepoTree

      public boolean isLogCodeRepoTree()
      Description copied from interface: ProjectDependencyConfig
      Whether to log code repository dependency tree.
      Specified by:
      isLogCodeRepoTree in interface ProjectDependencyConfig
      Returns:
      whetehr to log code repository dependency tree
    • getRecipeRepos

      public List<String> getRecipeRepos()
      Description copied from interface: ProjectDependencyConfig
      A list of build recipe repository URLs
      Specified by:
      getRecipeRepos in interface ProjectDependencyConfig
      Returns:
      list of build recipe repository URLs
    • isValidateCodeRepoTags

      @Deprecated(since="0.0.78") public boolean isValidateCodeRepoTags()
      Deprecated.
      Specified by:
      isValidateCodeRepoTags in interface ProjectDependencyConfig
      Returns:
      whether to validate core repos and tags
    • isLegacyScmLocator

      public boolean isLegacyScmLocator()
      Specified by:
      isLegacyScmLocator in interface ProjectDependencyConfig
      Returns:
      whether to use the legacy SCM detector
    • isWarnOnResolutionErrors

      public boolean isWarnOnResolutionErrors()
      Description copied from interface: ProjectDependencyConfig
      Whether to warn about errors not being able to resolve top level artifacts or fail the process
      Specified by:
      isWarnOnResolutionErrors in interface ProjectDependencyConfig
      Returns:
      whether to warn on artifact resolution errors
    • isWarnOnMissingScm

      public boolean isWarnOnMissingScm()
      Description copied from interface: ProjectDependencyConfig
      Whether to issue a warning in case the SCM location could not be determined or fail with an error (the default behavior).
      Specified by:
      isWarnOnMissingScm in interface ProjectDependencyConfig
      Returns:
      whether to fail in case the SCM location could not be determined
    • isIncludeAlreadyBuilt

      public boolean isIncludeAlreadyBuilt()
      Specified by:
      isIncludeAlreadyBuilt in interface ProjectDependencyConfig
    • isIncludeOptionalDeps

      public boolean isIncludeOptionalDeps()
      Description copied from interface: ProjectDependencyConfig
      Whether to include optional dependencies of the root project artifacts
      Specified by:
      isIncludeOptionalDeps in interface ProjectDependencyConfig
      Returns:
      whether to include optional dependencies of the root project artifacts
    • isGradleJava8

      public boolean isGradleJava8()
      Description copied from interface: ProjectDependencyConfig
      Whether to use Java 8 to fetch dependency information from a Gradle project. In case this method returns true, the value of JAVA8_HOME environment variable will be used as the Java 8 home directory.
      Specified by:
      isGradleJava8 in interface ProjectDependencyConfig
      Returns:
      whether to use Java 8 to fetch dependency information from a Gradle project
    • getGradleJavaHome

      public String getGradleJavaHome()
      Description copied from interface: ProjectDependencyConfig
      Java home directory that should be used when fetching dependency information from a Gradle project.
      Specified by:
      getGradleJavaHome in interface ProjectDependencyConfig
      Returns:
      Java home directory that should be used when fetching dependency information from a Gradle project.