Package app.spellscroll
Class SpellscrollGradlePlugin
java.lang.Object
app.spellscroll.SpellscrollGradlePlugin
- All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>
public class SpellscrollGradlePlugin
extends Object
implements org.gradle.api.Plugin<org.gradle.api.Project>
Main entry point for the Spellscroll Gradle plugin (
app.spellscroll.dev).
Applying this plugin to a project:
- Registers the
spellscrollextension (SpellscrollGradleExtension) for DSL configuration. - Registers the
generateSpellscrollBuildConfig,spellscrollDownloadAssets,spellscrollDev,spellscrollBuildUi, andspellscrollInitUitasks. - When the
javaplugin is also applied: automatically addsspellscroll-apiascompileOnly+annotationProcessor, wires the generated constants source into the main source set, and bundles the UI build output intoprocessResources.
Three properties are required in the spellscroll block:
pluginId, pluginName, and apiVersion.
A GradleException is thrown during afterEvaluate if any are absent.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(org.gradle.api.Project project) Applies the plugin to the givenProject.
-
Constructor Details
-
SpellscrollGradlePlugin
public SpellscrollGradlePlugin()
-
-
Method Details
-
apply
public void apply(org.gradle.api.Project project) Applies the plugin to the givenProject.This method registers the
spellscrollextension, configures property defaults, registers all tasks, wires Java-plugin integrations, and validates required configuration.- Specified by:
applyin interfaceorg.gradle.api.Plugin<org.gradle.api.Project>- Parameters:
project- the Gradle project to configure
-