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<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 Spellscroll installation directory.abstract org.gradle.api.provider.Property<String>Path to the UI module npm project directory.
-
Constructor Details
-
SpellscrollGradleExtension
public SpellscrollGradleExtension()
-
-
Method Details
-
getSpellscrollInstallDir
Path to the Spellscroll installation directory.Defaults to
C:\Program Files\Spellscrollon Windows and~/Applicationson MacOS. Override when Spellscroll is installed at a non-standard location.- Returns:
- the Spellscroll install directory property
-
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
-
getApiVersion
Required. Version ofspellscroll-apito compile against (e.g.1.2.3).The plugin automatically adds
app.spellscroll:spellscroll-api:<apiVersion>as bothcompileOnlyandannotationProcessorwhen thejavaplugin is present.- Returns:
- the Spellscroll API version property
-