@OpenApi
public class DependencyCheckerHelper
extends java.lang.Object
Project project = Application.getInstance.getProject(); DependencyCheckResult result = DependencyCheckerHelper.checkDependencies(project); if (result.hasDependencies()) { System.out.println("Modules of the project has dependencies"); System.out.println("Cyclic dependencies: " + result.hasCyclicDependencies()); System.out.println("Number of dependencies between modules/project: " + result.getDependencies().size()); } else { System.out.println("Modules of the project has no dependencies"); }
Modifier and Type | Method and Description |
---|---|
static DependencyCheckResult |
checkDependencies(Project project)
Checks dependencies between modules and project in the specified project.
|
static DependencyCheckResult |
checkDependencies(Project project,
java.util.Collection<Package> importantPackages)
Checks dependencies between modules and project in the specified project and returns
dependencies only between specified important packages.
|
static DependencyCheckResult |
checkDependencies(Project project,
java.util.Collection<Package> importantPackages,
boolean ignoreSystemProfiles)
Checks dependencies between modules and project in the specified project and returns
dependencies only between specified important packages.
|
@OpenApi public static DependencyCheckResult checkDependencies(Project project)
project
- a project.java.lang.IllegalArgumentException
- if project is null.@OpenApi public static DependencyCheckResult checkDependencies(Project project, java.util.Collection<Package> importantPackages)
project
- a project.importantPackages
- packages(modules) which dependencies are important. null - means that all packages are
important.java.lang.IllegalArgumentException
- if project is null or if at least one package is not from the specified project.@OpenApi public static DependencyCheckResult checkDependencies(Project project, java.util.Collection<Package> importantPackages, boolean ignoreSystemProfiles)
project
- a project.importantPackages
- packages(modules) which dependencies are important. null - means that all packages are
important.ignoreSystemProfiles
- specifies that system profiles must be ignored or not in dependency analysis.java.lang.IllegalArgumentException
- if project is null or if at least one package is not from the specified project.