Class AbstractJavaDependencyAnalysis

java.lang.Object
build.spin.module.java.AbstractJavaDependencyAnalysis
All Implemented Interfaces:
build.spin.Task<DependencyAnalysis>
Direct Known Subclasses:
Java25CompilerPlugin.JavaDependencyAnalysis

public abstract class AbstractJavaDependencyAnalysis extends Object implements build.spin.Task<DependencyAnalysis>
An abstract Task to perform Java Dependency Analysis using the Java Platform jdeps tool on the compiled and packaged Artifact for a Project.
Since:
Jan-2023
Author:
brian.oliver
  • Constructor Details

    • AbstractJavaDependencyAnalysis

      public AbstractJavaDependencyAnalysis()
  • Method Details

    • dependencies

      public Stream<build.spin.Reference> dependencies()
      Specified by:
      dependencies in interface build.spin.Task<DependencyAnalysis>
    • jdeps

      public DependencyAnalysis jdeps(Path buildPath, Stream<build.spin.module.modulesystem.ArtifactDescriptor> descriptors) throws Exception
      Perform jdeps dependency analysis on the packaged module.
      Parameters:
      buildPath - the build path for the Project
      descriptors - the ArtifactDescriptors for Project dependencies in the Workspace
      Returns:
      the DependencyAnalysis on the packaged module
      Throws:
      Exception - should the Task execution fail