@franzmoca/opencode-lombok
v0.1.4
Published
OpenCode plugin that adds Lombok support for JDTLS
Maintainers
Readme
opencode-lombok
opencode-lombok is an OpenCode plugin that adds Lombok support to Java projects.
This plugin was inspired by opencode PR #8031.
It automatically:
- detects Lombok usage in
pom.xml,build.gradle, andbuild.gradle.kts - downloads
lombok.jarwhen needed - configures
JAVA_TOOL_OPTIONSwith-javaagent:<path-to-lombok.jar>so JVM-based LSP servers (including JDTLS) pick it up
If JAVA_TOOL_OPTIONS already exists, the plugin appends the Lombok javaagent and avoids duplicates.
Install
Add the plugin to your OpenCode config:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@franzmoca/opencode-lombok"]
}You can also pin a specific version:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@franzmoca/[email protected]"]
}OpenCode will install npm plugins automatically at startup.
Behavior
- If
lspis globally disabled ("lsp": false), the plugin does nothing. - If
jdtlsis explicitly disabled ("lsp": { "jdtls": { "disabled": true } }), the plugin does nothing. - If
OPENCODE_DISABLE_LSP_DOWNLOAD=true, the plugin will not downloadlombok.jar.
Development
bun install
bun run typecheck
bun test
bun run buildPublish to npm
npm login
npm publish --access publicOr use the GitHub Actions workflow:
CIruns typecheck, tests, and build on push/PR.Publishruns onmainwhenpackage.jsonchanges version, publishes to npm, and creates a GitHub release/tag (v<version>).
Required GitHub secret
NPM_TOKEN: npm automation token with publish rights for@franzmoca/opencode-lombok
License
MIT
