public interface EnricherContext
| Modifier and Type | Method and Description |
|---|---|
Configuration |
getConfiguration()
The configuration specific to the enricher.
|
List<Dependency> |
getDependencies(boolean transitive)
Gets dependencies defined in build tool
|
default Optional<String> |
getDependencyVersion(String groupId,
String artifactId)
Gets version of given dependency.
|
GroupArtifactVersion |
getGav()
Get the current artifact with its parameters
|
io.fabric8.maven.docker.util.Logger |
getLog()
Get Logger.
|
Map<String,String> |
getProcessingInstructions() |
ProjectClassLoaders |
getProjectClassLoaders()
Get various class loaders used in the projects
|
File |
getProjectDirectory()
Base directory of the project.
|
Object |
getProperty(String key)
Gets a system property used in project.
|
default boolean |
hasDependency(String groupId,
String artifactId)
Checks if given dependency is defined.
|
boolean |
hasPlugin(String groupId,
String artifactId)
Check if a given plugin is present
|
void |
setProcessingInstructions(Map<String,String> instructions) |
GroupArtifactVersion getGav()
io.fabric8.maven.docker.util.Logger getLog()
Configuration getConfiguration()
File getProjectDirectory()
ProjectClassLoaders getProjectClassLoaders()
boolean hasPlugin(String groupId, String artifactId)
groupId - group id of plugin to check. If null any group will be considered.artifactId - of plugin to checkList<Dependency> getDependencies(boolean transitive)
transitive - if transitive deps should be returned.default boolean hasDependency(String groupId, String artifactId)
groupId - of dependency.artifactId - of dependency. If null, check if there is any dependency with the given groupdefault Optional<String> getDependencyVersion(String groupId, String artifactId)
groupId - of the dependency.artifactId - of the dependency.Copyright © 2019. All rights reserved.