Skip to content
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

[DCJ-400] Upgrade com.diffplug.spotless 6.7.1 -> 6.25.0 #1771

Merged
merged 5 commits into from
Aug 13, 2024

Conversation

okotsopoulos
Copy link
Contributor

@okotsopoulos okotsopoulos commented Aug 9, 2024

Jira ticket: https://broadworkbench.atlassian.net/browse/DCJ-400

Addresses

The com.diffplug.spotless upgrade was initially included in a Dependabot grouped minor and patch upgrade PR: #1763

We've since excluded it from grouped PRs, as new versions are likely to require developer intervention in the form of reformatting the code.

I'm electing to raise the upgrade separately since we already went to the trouble of investigating it in that earlier grouped PR.

Summary of changes

Minor dependency update to com.diffplug.spotless from 6.7.1 -> 6.25.0. https://github.com/diffplug/spotless/blob/main/plugin-gradle/CHANGES.md
Ran ./gradlew spotlessApply to pull in new changes.

Testing Strategy

CI build and tests should succeed.

Ran `./gradlew spotlessApply` to pull in new changes.
@okotsopoulos okotsopoulos added dependency Pull requests that update a dependency file gradle Pull request that updates a Gradle file labels Aug 9, 2024
Changes autogenerated by running:
./gradlew wrapper --gradle-version latest

Rationale: two unit test runs failed due to heap space issues (see below), upgrading Gradle may include performance improvements.

The Daemon will expire after the build after running out of JVM heap space.
The project memory settings are likely not configured or are configured to an insufficient value.
The daemon will restart for the next build, which may increase subsequent build times.
These settings can be adjusted by setting 'org.gradle.jvmargs' in 'gradle.properties'.
The currently configured max heap space is '512 MiB' and the configured max metaspace is '384 MiB'.
For more information on how to set these values, please refer to https://docs.gradle.org/8.6/userguide/build_environment.html#sec:configuring_jvm_memory in the Gradle documentation.
To disable this warning, set 'org.gradle.daemon.performance.disable-logging=true'.

FAILURE: Build failed with an exception.

* What went wrong:
Gradle build daemon has been stopped: since the JVM garbage collector is thrashing
Copy link

@okotsopoulos okotsopoulos marked this pull request as ready for review August 13, 2024 14:20
@okotsopoulos okotsopoulos requested review from a team as code owners August 13, 2024 14:20
@okotsopoulos okotsopoulos requested review from rushtong and fboulnois and removed request for a team August 13, 2024 14:20
Copy link
Member

@pshapiro4broad pshapiro4broad left a comment

Choose a reason for hiding this comment

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

Looks good, nice to see that spotless has added support for new-style switch.

After merging, could you add the commit for this change to .git-blame-ignore-revs? I don't think you can add it before merging up, since the squash merge will generate its own commit.

@okotsopoulos
Copy link
Contributor Author

okotsopoulos commented Aug 13, 2024

After merging, could you add the commit for this change to .git-blame-ignore-revs? I don't think you can add it before merging up, since the squash merge will generate its own commit.

@pshapiro4broad good shout, will do! (At that time I will also add a comment to this effect in the build file so that future Dependabot PRs invite this engagement from reviewers.)

Copy link
Contributor

@rushtong rushtong left a comment

Choose a reason for hiding this comment

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

👍🏽

@okotsopoulos okotsopoulos merged commit 99e385b into develop Aug 13, 2024
13 checks passed
@okotsopoulos okotsopoulos deleted the okotsopo-DCJ-400-com.diffplug.spotless-6.25.0 branch August 13, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency Pull requests that update a dependency file gradle Pull request that updates a Gradle file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants