Skip to content

feat(detect): add Java Gradle defaults#19

Merged
vincentkoc merged 1 commit into
openclaw:mainfrom
mbelinky:codex/gradle-java-detection
May 16, 2026
Merged

feat(detect): add Java Gradle defaults#19
vincentkoc merged 1 commit into
openclaw:mainfrom
mbelinky:codex/gradle-java-detection

Conversation

@mbelinky
Copy link
Copy Markdown
Contributor

Summary

  • Detect Java language from common source roots.
  • Infer root Gradle project defaults for build and test commands, preferring ./gradlew when present.
  • Update docs to mention Java/Kotlin Gradle coverage.

Why

Gradle Java projects already map source and test groups, but project detection did not report Java or default Gradle validation commands. This makes mapped Gradle projects more actionable for review runs.

Validation

  • pnpm typecheck
  • pnpm test -- src/mapper.test.ts
  • pnpm lint
  • pnpm build
  • Local dry-run against a Java/Gradle repository confirmed Java detection, wrapper build/test commands, and stable mapped review features

Red-team notes

  • Java detection is limited to common source roots so documentation-only .java snippets do not mark a project as Java.
  • Gradle defaults are only inferred for root Gradle projects, so nested Gradle apps inside another root do not get incorrect top-level commands.
  • This does not add framework-specific Java semantic role mapping.

@vincentkoc vincentkoc force-pushed the codex/gradle-java-detection branch from f2d1709 to c3f15f7 Compare May 16, 2026 17:12
@vincentkoc vincentkoc marked this pull request as ready for review May 16, 2026 17:12
@vincentkoc vincentkoc merged commit 4c34249 into openclaw:main May 16, 2026
3 checks passed
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.

2 participants