Class ProjectDependencyConfigImpl

    • Method Detail

      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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.