Extension

public final class Extension implements CodegenSettings

The protoData { } Gradle extension.

Constructors

Link copied to clipboard
public Extension Extension(Project project)

Types

Link copied to clipboard
public class Companion

Properties

Link copied to clipboard
public final static Extension.Companion Companion
Link copied to clipboard
@Deprecated(message = "Please do not use. Option providers are provided via `@AutoService`.")
private final ListProperty<String> optionProviders
Link copied to clipboard
private final DirectoryProperty outputBaseDir

Allows configuring the path to the root directory with the generated code.

Link copied to clipboard
private final ListProperty<String> plugins

Contains the class names of the plugins passed to ProtoData.

Link copied to clipboard
private List<String> subDirs

Allows configuring the subdirectories under the generated source set.

Link copied to clipboard
@Deprecated(message = "Please use `outputBaseDirectory` instead.", replaceWith = @ReplaceWith(imports = {}, expression = "outputBaseDirectory"))
private Object targetBaseDir

Functions

Link copied to clipboard
public final ListProperty<String> getOptionProviders()
Link copied to clipboard
public DirectoryProperty getOutputBaseDir()

Allows configuring the path to the root directory with the generated code.

Link copied to clipboard
public final ListProperty<String> getPlugins()

Contains the class names of the plugins passed to ProtoData.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Deprecated(message = "Please do not use. Option providers are provided via `@AutoService`.")
public Unit optionProviders(String classNames)
Link copied to clipboard
public Unit plugins(String classNames)

Adds the class names of the plugins to the list of those passed to ProtoData.

Link copied to clipboard
public Unit setSubDirs(List<String> subDirs)
Link copied to clipboard
public Unit setTargetBaseDir(@Deprecated(message = "Please use `outputBaseDirectory` instead.", replaceWith = @ReplaceWith(imports = {}, expression = "outputBaseDirectory")) Object targetBaseDir)