Class SpellscrollGradleExtension
spellscroll {} configuration block.
Three properties are required — getPluginId(), getPluginName(),
and getApiVersion() — and must be set in the consumer's build script.
All other properties have sensible defaults configured by SpellscrollGradlePlugin.
Example usage in a consumer project:
spellscroll {
pluginId = 'com.example.my-plugin'
pluginName = 'My Plugin'
apiVersion = '1.1.0'
}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.provider.Property<String>Required. Version ofspellscroll-apito compile against (e.g.abstract org.gradle.api.provider.Property<String>Name of the build task thatspellscrollDevdepends on before launching.abstract org.gradle.api.provider.Property<Boolean>Whentrue, passes--ignore-default-plugins-dirto the Spellscroll process on launch, preventing Spellscroll from loading plugins from its default directory.abstract org.gradle.api.provider.Property<String>Required. The plugin identifier (registered at Spellscroll.app under "Developer Tools") This identifier is always an all-lowercase alphanumeric only string.abstract org.gradle.api.provider.Property<String>Required. Human-readable plugin name (e.g.abstract org.gradle.api.provider.Property<String>Plugin version string embedded in the generated constants class asPLUGIN_VERSION.abstract org.gradle.api.provider.Property<String>Path to the UI module npm project directory.
-
Constructor Details
-
SpellscrollGradleExtension
public SpellscrollGradleExtension()
-
-
Method Details
-
getUiModuleDir
Path to the UI module npm project directory.Defaults to
<projectDir>/ui-module. The directory does not need to exist;spellscrollBuildUiandspellscrollInitUiwill create or skip it as needed.- Returns:
- the UI module directory property
-
getIgnoreDefaultPluginsDir
Whentrue, passes--ignore-default-plugins-dirto the Spellscroll process on launch, preventing Spellscroll from loading plugins from its default directory.Defaults to
true.- Returns:
- the ignore-default-plugins-dir flag property
-
getPluginId
Required. The plugin identifier (registered at Spellscroll.app under "Developer Tools") This identifier is always an all-lowercase alphanumeric only string.Passed to Spellscroll via
--dev-pluginand embedded in the generated constants class.- Returns:
- the plugin ID property
-
getPluginName
Required. Human-readable plugin name (e.g.My Plugin).Used to derive the generated constants class name (e.g.
MyPluginConstants) and as the tab label in the scaffolded UI component.- Returns:
- the plugin name property
-
getPluginVersion
Plugin version string embedded in the generated constants class asPLUGIN_VERSION.Falls back to the Gradle
project.versionif not set explicitly. Must be set (either here or viaproject.version) before the build runs.- Returns:
- the plugin version property
-
getBuildTask
Name of the build task thatspellscrollDevdepends on before launching.Defaults to
"build". Override this when you wantspellscrollDevto run a different lifecycle task instead — for example, set it to"assemble"to skip tests, or to any other task registered in the consumer project.Only takes effect when the
javaplugin is also applied. Set to an empty string to disable the build task dependency entirely (not recommended).- Returns:
- the build task name property
-
getApiVersion
Required. Version ofspellscroll-apito compile against (e.g.1.2.3). Must be1.1.0or higher.The plugin automatically adds
app.spellscroll:spellscroll-api:<apiVersion>as bothcompileOnlyandannotationProcessorwhen thejavaplugin is present.- Returns:
- the Spellscroll API version property
-