Class UnusedDependenciesFinder

  • All Implemented Interfaces:
    Step

    public abstract class UnusedDependenciesFinder
    extends Object
    implements Step
    The step that reports dependencies not used during Java compilation.

    It uses class usage map produced during compilation and compares it to the outputs of the dependencies specified in Java libraries. The entries from classpath not used during compilation are resolved to the corresponding targets and reported back to the user either as an error (which halt the build) or as a warning.

    • Constructor Detail

      • UnusedDependenciesFinder

        public UnusedDependenciesFinder()
    • Method Detail

      • getBuildTarget

        public abstract BuildTarget getBuildTarget()
      • getDepFileRelativePath

        public abstract Path getDepFileRelativePath()
      • getDeps

        public abstract com.google.common.collect.ImmutableList<com.facebook.buck.jvm.java.UnusedDependenciesFinder.DependencyAndExportedDeps> getDeps()
      • getProvidedDeps

        public abstract com.google.common.collect.ImmutableList<com.facebook.buck.jvm.java.UnusedDependenciesFinder.DependencyAndExportedDeps> getProvidedDeps()
      • getBuildozerPath

        public abstract Optional<String> getBuildozerPath()
      • isOnlyPrintCommands

        public abstract boolean isOnlyPrintCommands()
      • getShortName

        public String getShortName()
        Specified by:
        getShortName in interface Step
        Returns:
        a short name/description for the command, such as "javac". Should fit on one line.