GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Generate formatter defaults from the version catalog by builtbyjuls · Pull Request #3045 · diffplug/spotless

Conversation

@builtbyjuls

@builtbyjuls builtbyjuls commented Sep 8, 2026 •
edited by Goooler
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Closes #2705.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Goooler

Goooler commented Sep 8, 2026

Copy link
Copy Markdown
Member

Needs to check the other versions as well, replace all related usages.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@builtbyjuls

builtbyjuls commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

Thanks. To confirm, should I generate constants for every catalog-backed formatter/runtime default in lib and replace their usages across lib and the plugins, while keeping compatibility thresholds and intentionally older compile pins hardcoded?

I found four catalog/default mismatches: Gson 2.14.0/2.13.2, Jackson YAML 2.20.1/2.14.1, Cleanthat 2.24/2.25, and Palantir 1.1.0/2.80.0. Including those would change or downgrade current defaults. Should this PR reconcile those too?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Goooler

This comment was marked as outdated.

Sign in to view
@Goooler

This comment was marked as outdated.

Sign in to view
@builtbyjuls
builtbyjuls force-pushed the issue-2705-gjf-buildconfig branch from ae74a21 to c2449ef Compare September 10, 2026 22:46
@builtbyjuls builtbyjuls changed the title Generate the google-java-format default from the version catalog Generate formatter defaults from the version catalog Sep 10, 2026
@builtbyjuls

builtbyjuls commented Sep 10, 2026

Copy link
Copy Markdown
Contributor Author

Thanks, @Goooler. I updated the PR to cover the full mandatory scope you outlined.

  • Generated package-private defaults for the catalog-backed formatter runtimes, including the 11 ready items.
  • Added the separate Palantir 2.80.0 runtime default while keeping its 1.1.0 compile-only pin.
  • Updated Cleanthat to 2.25, Gson to 2.14.0, and Jackson YAML to the shared Jackson 2.20.1 version.
  • Made both Gradle and Maven JSON Patch defaults follow JsonPatchStep.defaultVersion().
  • Kept compatibility thresholds, historical test versions, and intentional compile-only pins hardcoded.
  • Left the optional formatters and NPM/native/P2 items out of scope.
  • Added the requested Gson entry to CHANGES.md.

All affected formatter and plugin tests pass. The aggregate build encountered only an external Gradle download timeout and a parallel P2 lock collision; all three affected test methods passed when rerun alone. An independent post-change review also approved the implementation with no findings.

Updated commit: c2449efda

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@builtbyjuls @Goooler
Generate formatter defaults from version catalog
8592c4b
@Goooler
Goooler force-pushed the issue-2705-gjf-buildconfig branch from c2449ef to 8592c4b Compare September 11, 2026 03:45
@Goooler
Derive more version fields and clean up the usages
e1edf8f
@Goooler
Goooler force-pushed the issue-2705-gjf-buildconfig branch from 7c87ddd to e1edf8f Compare September 11, 2026 04:16
nedtwigg
nedtwigg approved these changes Sep 14, 2026
View reviewed changes

@nedtwigg nedtwigg left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Amazing! This should make things a lot easier to maintain, thanks!

@Goooler if this looks good to you too press merge.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jbduncan reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@nedtwigg nedtwigg mentioned this pull request Sep 14, 2026
Support Java 25 and 26 in CI matrix and update test suite compatibility #3046
Merged
Goooler
Goooler approved these changes Sep 15, 2026
View reviewed changes
@Goooler
Goooler merged commit 4154070 into diffplug:main Sep 15, 2026
16 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@Goooler Goooler mentioned this pull request Sep 15, 2026
Add comments in version catalog reminding to update changelogs on version bumps #3064
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@nedtwigg nedtwigg nedtwigg approved these changes
+1 more reviewer
@Goooler Goooler Goooler approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Use gradle-buildconfig-plugin to generate dependency versions

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@builtbyjuls @Goooler @nedtwigg
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.