Skip to content

Format groovy files #7202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

mernst
Copy link
Member

@mernst mernst commented Aug 14, 2025

No description provided.

@mernst mernst requested review from msridhar, smillst and Copilot August 14, 2025 16:53
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@@ -332,39 +332,36 @@ allprojects { currentProj ->
formatAnnotations()
}

// Only define a groovyGradle task on the root project, for simplicity in setting the target pattern
if (currentProj == currentProj.rootProject) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure removing this check is right, in that I'm not sure all build.gradle files in nested directories will still be formatted. Is the issue here that the top-level build.gradle file was not getting formatted?

Also if I recall correctly tweaking these settings can have significant impacts on incremental build performance so we should test that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I was seeing that problem, but I can no longer reproduce it. So I'll close this PR.

@mernst mernst closed this Aug 14, 2025
@mernst mernst deleted the groovygradle-formatting branch August 14, 2025 21:38
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