add-platform
Installation
SKILL.md
Add Platform
Critical
- All shaded deps (okhttp3, gson, configurate, snakeyaml) must be declared as
compile-scope dependencies in the new module'spom.xml— they are relocated by the parent shade config. Never mark themprovided. - The
maven-shade-pluginexecution must be present in every platform module's<build>— it is NOT inherited automatically. webhookSender.shutdown()must be called in the disable/shutdown lifecycle or the OkHttp dispatcher thread will leak.Events.get().unregister(liteBansListener)must be called beforeshutdown()in the disable lifecycle.- Add the new module to
<modules>in the rootpom.xmlbefore building.
Instructions
- Determine the platform slug (lowercase, e.g.
sponge). All paths below use<slug>as a placeholder.- Java package:
dev.colocated.litebansdiscordbridge.<slug> - Artifact ID:
litebansdiscordbridge-<slug> - Final JAR name:
LiteBansDiscordBridge-<slug>-${project.version}${jar.suffix} - Class prefix: e.g.
Sponge→SpongePlatformAdapter,LiteBansDiscordBridgeSponge,SpongeCommand
- Java package: