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
  • Method Details

    • resolveProjectPlugins

      public Collection<ResolvedProtocPlugin> resolveProjectPlugins(GenerationRequest request) throws ResolutionException
      Resolve all protoc 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.