public interface JkDependency
org.hibernate:hibernate-core:3.0.1
Modifier and Type | Method and Description |
---|---|
java.nio.file.Path |
getIdeProjectDir()
In the IDE, a dependency can be provided by a project exporting it.
|
static boolean |
isCoordinate(java.lang.String pathOrCoordinate)
Determines whether the given String represents a coordinate or a file path.
|
default boolean |
matches(JkDependency other)
Returns
true if the specified dependency matches with this one. |
static JkDependency |
of(java.nio.file.Path baseDir,
java.lang.String pathOrCoordinate)
Same as
of(String) but resolve relative paths against the specified base directory. |
static JkDependency |
of(java.lang.String pathOrCoordinate)
Returns either a
JkCoordinateDependency or a JkFileSystemDependency
depending on the specified parameter stands for a path or a coordinate. |
JkDependency |
withIdeProjectDir(java.nio.file.Path path)
Returns a dependency identical to this one but with the specified project base dir.
|
java.nio.file.Path getIdeProjectDir()
null
when the dependency is not coming from another project.JkDependency withIdeProjectDir(java.nio.file.Path path)
getIdeProjectDir()
default boolean matches(JkDependency other)
true
if the specified dependency matches with this one. Matching means that two matching dependencies can not be declared in a same dependency set as it will be considered as a duplicate or result in a conflict.
For example "com.google:guava:21.0" is matching with "com.google:guava:23.0" even if they are not equals.
static JkDependency of(java.lang.String pathOrCoordinate)
JkCoordinateDependency
or a JkFileSystemDependency
depending on the specified parameter stands for a path or a coordinate.static JkDependency of(java.nio.file.Path baseDir, java.lang.String pathOrCoordinate)
of(String)
but resolve relative paths against the specified base directory.static boolean isCoordinate(java.lang.String pathOrCoordinate)