Skip to content

fix(java, cli): Only run spotlessApply if gradlew file exists.#9770

Merged
jsklan merged 3 commits intomainfrom
jsklan/fix-java-v2
Oct 5, 2025
Merged

fix(java, cli): Only run spotlessApply if gradlew file exists.#9770
jsklan merged 3 commits intomainfrom
jsklan/fix-java-v2

Conversation

@jsklan
Copy link
Copy Markdown
Contributor

@jsklan jsklan commented Oct 5, 2025

Description

Fix an issue where the Java generator would fail when attempting to run spotlessApply in projects that don't have a gradlew file. This occurred in Java V2 generator and dynamic snippets test generation when local-file-system was the output location

Changes Made

  • Added existence check for gradlew file before attempting to run spotlessApply in JavaProject.ts
  • Added existence check for gradlew file before attempting to run spotlessApply in DynamicSnippetsJavaTestGenerator.ts
  • Updated version to 3.8.8 for Java SDK generator with fix changelog entry
  • Updated CLI version to 0.84.9 with fix changelog entry

Testing

  • Manually tested local file system output with new generator

@jsklan jsklan marked this pull request as ready for review October 5, 2025 21:30
@jsklan jsklan merged commit aa47309 into main Oct 5, 2025
309 of 322 checks passed
@jsklan jsklan deleted the jsklan/fix-java-v2 branch October 5, 2025 21:45
fearthecowboy pushed a commit that referenced this pull request Oct 6, 2025
kennyderek pushed a commit that referenced this pull request Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants