Interface MavenProtocPlugin
- All Superinterfaces:
MavenArtifact
,ProtocPlugin
- All Known Implementing Classes:
ImmutableMavenProtocPlugin
,MavenProtocPluginBean
Implementation independent descriptor for a protoc plugin that can be resolved from a Maven
repository.
- Since:
- 2.0.0
- Author:
- Ashley Scopes
-
Method Summary
Methods inherited from interface io.github.ascopes.protobufmavenplugin.dependencies.MavenArtifact
getArtifactId, getClassifier, getGroupId, getType
Methods inherited from interface io.github.ascopes.protobufmavenplugin.plugins.ProtocPlugin
getOptions, getOrder, getOutputDirectory, isRegisterAsCompilationRoot, isSkip
-
Method Details
-
getVersion
@NonNull String getVersion()Get the version of theprotoc
plugin.This must be specified for plugins. The use of
<dependencyManagement/>
is ignored here.- Specified by:
getVersion
in interfaceMavenArtifact
- Returns:
- the protoc plugin version to use.
-
getJvmArgs
-
getJvmConfigArgs
Get the arguments to pass to the JVM to configure it.Users can use this to control concerns such as heap memory controls, GC and JIT settings, and specifying additional JVM options.
- Returns:
- the list of command line arguments to pass to the JVM.
- Since:
- 2.6.0
-
getMainClass
@Nullable String getMainClass()The main class entrypoint to use if the plugin is not an assembled JAR.Ignored in all other cases.
- Returns:
- the main class name.
- Since:
- 2.5.0
-