Class DependencyContextImpl
java.lang.Object
io.micronaut.projectgen.core.buildtools.dependencies.DependencyContextImpl
- All Implemented Interfaces:
DependencyContext
Default implementation of
DependencyContext
.-
Field Summary
Fields inherited from interface io.micronaut.projectgen.core.buildtools.dependencies.DependencyContext
IS_COMPILE_API_OR_RUNTIME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDependency
(@NonNull Dependency dependency) void
addDependencyOnlyForBuild
(Dependency dependency, BuildTool buildTool) @NonNull Set<Dependency>
@NonNull Collection<Dependency>
getDependenciesByBuildTool
(@NonNull BuildTool buildTool) resolveCoordinate
(String artifactId) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.projectgen.core.buildtools.dependencies.DependencyContext
addDependency, addDependencyOnlyForBuild, removeDuplicates
-
Constructor Details
-
DependencyContextImpl
-
-
Method Details
-
addDependency
- Specified by:
addDependency
in interfaceDependencyContext
-
addDependencyOnlyForBuild
- Specified by:
addDependencyOnlyForBuild
in interfaceDependencyContext
-
getDependencies
- Specified by:
getDependencies
in interfaceDependencyContext
-
getDependenciesByBuildTool
@NonNull public @NonNull Collection<Dependency> getDependenciesByBuildTool(@NonNull @NonNull BuildTool buildTool) - Specified by:
getDependenciesByBuildTool
in interfaceDependencyContext
-
resolveCoordinate
- Parameters:
artifactId
- Artifact ID- Returns:
- Coordinate
-