Skip to content

feat(integration): add java docs-only variant with wizard framework routing#270

Draft
sarahxsanders wants to merge 1 commit into
mainfrom
posthog-code/integration-java-variant
Draft

feat(integration): add java docs-only variant with wizard framework routing#270
sarahxsanders wants to merge 1 commit into
mainfrom
posthog-code/integration-java-variant

Conversation

@sarahxsanders

Copy link
Copy Markdown
Collaborator

Adds an integration-java skill so the wizard can support Java server projects. Follows the docs-only pattern used by go/elixir/kmp:

  • java variant in context/skills/integration/config.yaml with framework: java, so skill-menu.json routes wizard-detected Java projects to the skill
  • description-java-docs-only.md template (detect Maven vs Gradle build files, add the com.posthog:posthog-server dependency, one client per process, close() on shutdown / flush() in serverless)
  • java-server: commandments block — deliberately keyed java-server (variant tagged [java, java-server]) because the Android skill already carries the java tag and must not collect backend posthog-server rules

Why: the wizard docs page lists Java as "Coming soon"; rather than removing the label, we're adding real wizard support. A paired wizard PR adds Integration.java detection and will link back here; this PR needs to merge and release before it.

Verified: npm test passes; npm run build emits integration-java.zip (same layout as integration-go.zip) and {"id": "integration-java", "group": "integration", "framework": "java"} in skill-menu.json, and the built integration-android.zip commandments are unchanged (no java-server leak).


Created with PostHog Code

…outing

Adds an integration-java skill following the docs-only pattern (go/elixir/kmp): a java variant in integration/config.yaml with framework: java for wizard routing, a description-java-docs-only.md template, and a java-server commandments block. The commandments are keyed java-server (variant tagged [java, java-server]) so the Android skill, which carries the java tag, does not collect backend posthog-server rules.

Generated-By: PostHog Code
Task-Id: 9c949855-7611-48f2-b8b5-7aa4112543e5
@github-actions

Copy link
Copy Markdown

🧙 Wizard CI

Run the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands:

Test all apps:

  • /wizard-ci all

Test all apps in a directory:

  • /wizard-ci basic-integration
  • /wizard-ci mcp-analytics
  • /wizard-ci revenue

Test an individual app:

  • /wizard-ci basic-integration/android
  • /wizard-ci basic-integration/angular
  • /wizard-ci basic-integration/astro
Show more apps
  • /wizard-ci basic-integration/django
  • /wizard-ci basic-integration/fastapi
  • /wizard-ci basic-integration/flask
  • /wizard-ci basic-integration/javascript-node
  • /wizard-ci basic-integration/javascript-web
  • /wizard-ci basic-integration/laravel
  • /wizard-ci basic-integration/next-js
  • /wizard-ci basic-integration/nuxt
  • /wizard-ci basic-integration/python
  • /wizard-ci basic-integration/rails
  • /wizard-ci basic-integration/react-native
  • /wizard-ci basic-integration/react-router
  • /wizard-ci basic-integration/sveltekit
  • /wizard-ci basic-integration/swift
  • /wizard-ci basic-integration/tanstack-router
  • /wizard-ci basic-integration/tanstack-start
  • /wizard-ci basic-integration/vue
  • /wizard-ci mcp-analytics/custom-dispatcher
  • /wizard-ci mcp-analytics/typescript-sdk
  • /wizard-ci revenue/stripe

Results will be posted here when complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant