Skip to content

chore: update spotless-plugin to 3.0.0 and palantir-java-format to 2.74.0#149

Merged
kaleev merged 1 commit into
mainfrom
update-spotless-plugin-version
Nov 21, 2025
Merged

chore: update spotless-plugin to 3.0.0 and palantir-java-format to 2.74.0#149
kaleev merged 1 commit into
mainfrom
update-spotless-plugin-version

Conversation

@innokenty
Copy link
Copy Markdown

Current configuration yields NoSuchMethodError upon compilation when using java 25, which is now fixed in palantir-java-format:2.71.0: palantir/palantir-java-format#1305

That only change would be sufficient, but I updated the palantir version to 2.74.0 and also the spotless plugin to 3.0.0 to comply with this change in the original repo: feature-tracker@1e2fca6

Also fixes readme that still mentioned java 21 as prerequisite, when in fact it is now java 24.

…74.0

Current configuration yields `NoSuchMethodError` upon compilation when using java 25,
which is now fixed in `palantir-java-format:2.71.0`:
palantir/palantir-java-format#1305

That only change would be sufficient, but I updated the palantir version to `2.74.0`
and also the spotless plugin to `3.0.0` to comply with this change in the original repo:
feature-tracker@1e2fca6

Also fixes readme that still mentioned java 21 as prerequisite, when in fact it is now java 24.
Comment thread pom.xml
<name>feature-service</name>
<description>feature-service</description>
<properties>
<java.version>24</java.version>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

From my perspective, we should keep using Java 24 for this project.
We should double-check how the Java version is currently determined by the framework.

Copy link
Copy Markdown
Author

@innokenty innokenty Nov 11, 2025

Choose a reason for hiding this comment

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

This property means that minumum java24 is required, but java25 (which is now latest) is also fine, as they're backward compatible.

The problem is, project doesn't compile under java25 due to a bug in the spotless-plugin/palantir-format. Upgrading those simply allows the project to run on java25, not forcing this upgrade, but allowing it.

Original repo already has this change added as well (see PR description)

@innokenty
Copy link
Copy Markdown
Author

To make sure, I have tested this change under java 24.0.2 as well:
./mvnw clean verify passed successfully ✅

I had to install the custom java 24 build from the archive at https://jdk.java.net/archive for this, which is not recommended generally.

@volkov
Copy link
Copy Markdown

volkov commented Nov 14, 2025

Lets merge, then new datapoint will not have issue with java 25

@volkov volkov requested review from kaleev and volkov November 14, 2025 09:13
@github-actions github-actions Bot added Verified and removed Review labels Nov 14, 2025
@kaleev kaleev merged commit 7050584 into main Nov 21, 2025
5 checks passed
@innokenty innokenty deleted the update-spotless-plugin-version branch November 24, 2025 10:47
Gowrishbyndoor pushed a commit that referenced this pull request Nov 30, 2025
…74.0

- merge pull request #149 from dpaia/update-spotless-plugin-version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants