Class ProjectPluginResolver
java.lang.Object
io.github.ascopes.protobufmavenplugin.plugins.ProjectPluginResolver
@Description("Resolves and packages protoc plugins from various remote and local locations")
@Named
public final class ProjectPluginResolver
extends Object
Resolver for plugins within a project that may be located in several
different places.
- Since:
- 2.7.0
- Author:
- Ashley Scopes
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BinaryPluginResolver
private final JvmPluginResolver
-
Constructor Summary
ConstructorsConstructorDescriptionProjectPluginResolver
(BinaryPluginResolver binaryPluginResolver, JvmPluginResolver jvmPluginResolver) -
Method Summary
Modifier and TypeMethodDescriptionresolveProjectPlugins
(GenerationRequest request) Resolve allprotoc
plugins.
-
Field Details
-
binaryPluginResolver
-
jvmPluginResolver
-
-
Constructor Details
-
ProjectPluginResolver
@Inject ProjectPluginResolver(BinaryPluginResolver binaryPluginResolver, JvmPluginResolver jvmPluginResolver)
-
-
Method Details
-
resolveProjectPlugins
public Collection<ResolvedProtocPlugin> resolveProjectPlugins(GenerationRequest request) throws ResolutionException Resolve allprotoc
plugins.Note that duplicates are allowed, but the return order is arbitrary. The expectation is that these will be logically ordered elsewhere.
- Parameters:
request
- the generation request.- Returns:
- the collection of plugins.
- Throws:
ResolutionException
- if resolution fails.
-