ProtocConfigurationPlugin

public abstract class ProtocConfigurationPlugin extends SpinePlugin

An abstract base for Gradle plugins that configure Protobuf compilation.

Any extending plugin requires com.google.protobuf plugin. If it is not applied, no action is performed.

Constructors

Link copied to clipboard

Properties

Link copied to clipboard
protected final static DependencyVersions VERSIONS

Functions

Link copied to clipboard
public void apply(Project project)
Link copied to clipboard
protected abstract void configureProtocPlugins(NamedDomainObjectContainer<ExecutableLocator> plugins, Project project)
Adds plugins related to the protoc.
Link copied to clipboard
protected void customizeTask(GenerateProtoTask protocTask)
Allows subclasses to specify additional generation task settings.
Link copied to clipboard
protected abstract Path generatedFilesBaseDir(Project project)
Obtains the location of the generated directory of the specified project.
Link copied to clipboard
protected abstract File getMainDescriptorSet(Project project)
Obtains the merged descriptor set file of the main module.
Link copied to clipboard
protected abstract File getTestDescriptorSet(Project project)
Obtains the merged descriptor set file of the test module.
Link copied to clipboard
protected static boolean isTestsTask(GenerateProtoTask protocTask)

Inherited functions

Link copied to clipboard
protected void logMissingDescriptorSetFile(File setFile)
Link copied to clipboard
protected GradleTask.Builder newTask(TaskName name, Action<Task> action)
Create a new instance of GradleTask.Builder.
Link copied to clipboard
public static File resolve(Supplier<String> path)
Resolves an absolute file name obtained as a string from the passed supplier.