Class ProjectInputResolver
java.lang.Object
io.github.ascopes.protobufmavenplugin.sources.ProjectInputResolver
@Description("Resolves all protobuf sources to compile and/or make importable in the project")
@Named
public final class ProjectInputResolver
extends Object
Component that resolves all protobuf source and import paths for a given plugin invocation,
ensuring they are in a location that is accessible by the
protoc
binary.- Since:
- 2.7.0
- Author:
- Ashley Scopes
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MavenArtifactPathResolver
private static final org.slf4j.Logger
private final ProtoSourceResolver
-
Constructor Summary
ConstructorsConstructorDescriptionProjectInputResolver
(MavenArtifactPathResolver artifactPathResolver, ProtoSourceResolver sourceResolver) -
Method Summary
Modifier and TypeMethodDescriptionprivate Collection
<SourceListing> private Collection
<SourceListing> resolveProjectInputs
(GenerationRequest request)
-
Field Details
-
log
private static final org.slf4j.Logger log -
artifactPathResolver
-
sourceResolver
-
-
Constructor Details
-
ProjectInputResolver
@Inject ProjectInputResolver(MavenArtifactPathResolver artifactPathResolver, ProtoSourceResolver sourceResolver)
-
-
Method Details
-
resolveProjectInputs
public ProjectInputListing resolveProjectInputs(GenerationRequest request) throws ResolutionException - Throws:
ResolutionException
-
resolveCompilableSources
private Collection<SourceListing> resolveCompilableSources(GenerationRequest request) throws ResolutionException - Throws:
ResolutionException
-
resolveDependencySources
private Collection<SourceListing> resolveDependencySources(GenerationRequest request) throws ResolutionException - Throws:
ResolutionException
-