Class ProtocResolver
java.lang.Object
io.github.ascopes.protobufmavenplugin.protoc.ProtocResolver
@Description("Finds or downloads the required version of protoc from various locations")
@Named
public final class ProtocResolver
extends Object
Resolver for the
protoc executable.- Author:
- Ashley Scopes
-
Constructor Summary
ConstructorsConstructorDescriptionProtocResolver(MavenArtifactPathResolver artifactPathResolver, PlatformClassifierFactory platformClassifierFactory, SystemPathBinaryResolver systemPathResolver, UriResourceFetcher urlResourceFetcher) -
Method Summary
Modifier and TypeMethodDescriptionresolve(ProtocDistribution distribution, @Nullable Digest digest)
-
Constructor Details
-
ProtocResolver
@Inject public ProtocResolver(MavenArtifactPathResolver artifactPathResolver, PlatformClassifierFactory platformClassifierFactory, SystemPathBinaryResolver systemPathResolver, UriResourceFetcher urlResourceFetcher)
-
-
Method Details
-
resolve
public Optional<Path> resolve(ProtocDistribution distribution, @Nullable Digest digest) throws ResolutionException - Throws:
ResolutionException
-