Skip to content

Change JDK version to 21#67

Open
fkleedorfer wants to merge 2 commits into
cool-rdf:mainfrom
fkleedorfer:try-java-21
Open

Change JDK version to 21#67
fkleedorfer wants to merge 2 commits into
cool-rdf:mainfrom
fkleedorfer:try-java-21

Conversation

@fkleedorfer

Copy link
Copy Markdown
Contributor

Currently, Cool-RDF builds for JDK 25, But I am not convinced it's required. Users of the RDF formatter in the spotless plugin would be less disrupted if they did not need to update their JDK when updating. This PR just blindly tries if it would work Local build fails at diagram generation bc it does not find dot, but that should not be an issue here.

The formatting style option `preserveBlankNodeLabelsAndOrdering` is added that governs whether the ordering and labels of blank nodes found in the source document is to be used or overriden according to the result of the stable blank node ordering algorithm. When `false` rdf parsing is done without using the blank node aware parser necessary for preserving ordering and labels.
The formatting style option `preserveBlankNodeLabelsAndOrdering` is added that governs whether the ordering and labels of blank nodes found in the source document is to be used or overriden according to the result of the stable blank node ordering algorithm. When `false` rdf parsing is done without using the blank node aware parser necessary for preserving ordering and labels.
@fkleedorfer

Copy link
Copy Markdown
Contributor Author

Seems to work!

@atextor would you be open to lowering the JDK version?

@atextor

atextor commented Jul 25, 2026

Copy link
Copy Markdown
Collaborator

The code base currently does not strongly depend on Java 25 features, so the downgrade should work in theory. However, since I was going to start playing around with features and/or dependencies that indeed require 25, I'd like to make sure how we can approach this in the longterm. I'd like to support the Spotless usecase, but (somehow) at the same time don't be dependent on their update roadmap. Do we known if/when Spotless is rather going to update to 25? It is the latest LTS release after all and was already released almost a year ago.

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