Package io.spine.protodata.gradle.plugin
Class Extension
-
- All Implemented Interfaces:
-
io.spine.protodata.gradle.CodegenSettings
public final class Extension implements CodegenSettingsThe
protoData { }Gradle extension.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classExtension.Companion
-
Field Summary
Fields Modifier and Type Field Description private final ListProperty<String>pluginsprivate final ListProperty<String>optionProvidersprivate List<String>subDirsprivate ObjecttargetBaseDirprivate final DirectoryPropertyoutputBaseDirpublic final static Extension.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description Extension(Project project)
-
Method Summary
Modifier and Type Method Description final ListProperty<String>getPlugins()Contains the class names of the plugins passed to ProtoData. final ListProperty<String>getOptionProviders()List<String>getSubDirs()UnitsetSubDirs(List<String> subDirs)ObjectgetTargetBaseDir()UnitsetTargetBaseDir(@Deprecated(message = "Please use `outputBaseDirectory` instead.", replaceWith = @ReplaceWith(imports = {}, expression = "outputBaseDirectory")) Object targetBaseDir)DirectoryPropertygetOutputBaseDir()Allows configuring the path to the root directory with the generated code. Unitplugins(String classNames)Adds the class names of the plugins to the list of those passed to ProtoData. UnitoptionProviders(String classNames)-
-
Method Detail
-
getPlugins
final ListProperty<String> getPlugins()
Contains the class names of the plugins passed to ProtoData.
-
getOptionProviders
final ListProperty<String> getOptionProviders()
-
getSubDirs
List<String> getSubDirs()
-
setSubDirs
Unit setSubDirs(List<String> subDirs)
-
getTargetBaseDir
Object getTargetBaseDir()
-
setTargetBaseDir
Unit setTargetBaseDir(@Deprecated(message = "Please use `outputBaseDirectory` instead.", replaceWith = @ReplaceWith(imports = {}, expression = "outputBaseDirectory")) Object targetBaseDir)
-
getOutputBaseDir
DirectoryProperty getOutputBaseDir()
Allows configuring the path to the root directory with the generated code.
By default, points at the
$projectDir/generated/directory.
-
plugins
Unit plugins(String classNames)
Adds the class names of the plugins to the list of those passed to ProtoData.
-
optionProviders
@Deprecated(message = "Please do not use. Option providers are provided via `@AutoService`.") Unit optionProviders(String classNames)
-
-
-
-