pumpkin-api-kt/example
2026-09-07 18:39:58 -04:00
..
gradle/wrapper build: add example and version-based tool caching 2026-09-07 18:39:58 -04:00
src/wasmWasiMain/kotlin/example build: add example and version-based tool caching 2026-09-07 18:39:58 -04:00
build.gradle.kts build: add example and version-based tool caching 2026-09-07 18:39:58 -04:00
gradle.properties build: add example and version-based tool caching 2026-09-07 18:39:58 -04:00
gradlew build: add example and version-based tool caching 2026-09-07 18:39:58 -04:00
gradlew.bat build: add example and version-based tool caching 2026-09-07 18:39:58 -04:00
README.md build: add example and version-based tool caching 2026-09-07 18:39:58 -04:00
settings.gradle.kts build: add example and version-based tool caching 2026-09-07 18:39:58 -04:00

Example Kotlin plugin

This standalone Gradle project serves as an example to the published Pumpkin API and build plugin. CI builds this same example against a temporary Maven repository.

Before importing it locally, publish the development packages from the repository root:

./gradlew :api:publishToMavenLocal :gradle-plugin:publishToMavenLocal

Then open this directory as a Gradle project in IntelliJ, or build it here:

./gradlew build --refresh-dependencies

Copy build/pumpkin-example.wasm into the matching Pumpkin server's plugins directory. The plugin logs its initialization, load, and unload callbacks.

PUMPKIN_CI_REPOSITORY optionally selects an isolated Maven repository for CI. With no override, the example uses Maven local and the public repositories. It is intentionally a separate build, so it tests package use without substituting the repository's projects.