public class JkLocalProjectDependency extends JkComputedDependency implements JkFileDependency.JkTransitivityDependency
JkFileDependency.JkTransitivityDependency
files, runnable
Modifier and Type | Method and Description |
---|---|
java.util.List<JkDependency> |
getExportedDependencies()
Returns the dependencies that will be consumed by the depender.
|
JkTransitivity |
getTransitivity() |
static JkLocalProjectDependency |
of(java.lang.Runnable producer,
java.nio.file.Path file,
java.nio.file.Path basedir,
java.util.List<JkDependency> dependencies)
Constructs a
JkLocalProjectDependency from an artifact producer and the artifact file id
one is interested on. |
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) |
equals, getFiles, getIdeProjectDir, getMissingFilesOrEmptyDirs, hashCode, hasMissingFilesOrEmptyDirs, of, of, of, of, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getIdeProjectDir, matches
public static JkLocalProjectDependency of(java.lang.Runnable producer, java.nio.file.Path file, java.nio.file.Path basedir, java.util.List<JkDependency> 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
the dependencies needed to compile the jar but the ones that would be
published.public java.util.List<JkDependency> getExportedDependencies()
public JkTransitivity getTransitivity()
getTransitivity
in interface JkFileDependency.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()