public class JkLocalProjectDependency extends JkComputedDependency implements JkTransitivityDependency
files, runnable
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
JkDependencySet |
getExportedDependencies()
Returns the dependencies that will be consumed by the depender.
|
JkTransitivity |
getTransitivity() |
int |
hashCode() |
static JkLocalProjectDependency |
of(java.lang.Runnable producer,
java.nio.file.Path file,
java.nio.file.Path basedir,
JkDependencySet dependencies)
Constructs a
JkLocalProjectDependency from an artifact producer and the artifact file id
one is interested on. |
java.lang.String |
toString() |
JkLocalProjectDependency |
withIdeProjectDir(java.nio.file.Path path)
Returns a dependency identical to this one but with the specified project base dir.
|
JkLocalProjectDependency |
withoutExportedDependencies() |
JkLocalProjectDependency |
withTransitivity(JkTransitivity transitivity) |
getFiles, getIdeProjectDir, getMissingFilesOrEmptyDirs, hasMissingFilesOrEmptyDirs, of, of, of, of
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getIdeProjectDir, isCoordinate, matches, of, of
public static JkLocalProjectDependency of(java.lang.Runnable producer, java.nio.file.Path file, java.nio.file.Path basedir, JkDependencySet dependencies)
JkLocalProjectDependency
from an artifact producer and the artifact file id
one is interested on.producer
- The runnable producing the jar file.file
- The jar filebasedir
- The base directory of the project producing the jar file. Optional (IDE support)dependencies
- The dependencies that will be consumed by the depender. It's not
the dependencies needed to compile the jar but the ones that would be
published.public JkDependencySet getExportedDependencies()
public JkTransitivity getTransitivity()
getTransitivity
in interface JkTransitivityDependency
public JkLocalProjectDependency withIdeProjectDir(java.nio.file.Path path)
JkDependency
withIdeProjectDir
in interface JkDependency
withIdeProjectDir
in class JkComputedDependency
JkDependency.getIdeProjectDir()
public JkLocalProjectDependency withTransitivity(JkTransitivity transitivity)
public JkLocalProjectDependency withoutExportedDependencies()
public java.lang.String toString()
toString
in class JkComputedDependency
public boolean equals(java.lang.Object o)
equals
in class JkComputedDependency
public int hashCode()
hashCode
in class JkComputedDependency