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
-
Nested Class Summary
Nested classes/interfaces inherited from interface build.spin.Task
build.spin.Task.Pattern -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionStream<build.spin.Reference> Performjdepsdependency analysis on the packaged module.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface build.spin.Task
execute
-
Constructor Details
-
AbstractJavaDependencyAnalysis
public AbstractJavaDependencyAnalysis()
-
-
Method Details
-
dependencies
- Specified by:
dependenciesin interfacebuild.spin.Task<DependencyAnalysis>
-
jdeps
public DependencyAnalysis jdeps(Path buildPath, Stream<build.spin.module.modulesystem.ArtifactDescriptor> descriptors) throws Exception Performjdepsdependency analysis on the packaged module.- Parameters:
buildPath- the build path for theProjectdescriptors- theArtifactDescriptors forProjectdependencies in theWorkspace- Returns:
- the
DependencyAnalysison the packaged module - Throws:
Exception- should theTaskexecution fail
-