Skip to content

Require JDK 17 - #1741

Merged
joelittlejohn merged 2 commits into
joelittlejohn:masterfrom
unkish:issues/jdk17_baseline
Dec 9, 2025
Merged

joelittlejohn merged 2 commits into
joelittlejohn:masterfrom
unkish:issues/jdk17_baseline

Conversation

@unkish

@unkish unkish commented Dec 9, 2025

Copy link
Copy Markdown
Collaborator
  • bump maven plugin versions
  • remove java-* profiles
  • ensure that gradle wrappers SHA256 is matching the ones listed on https://gradle.org/release-checksums/#8.9
  • GenerateJsonSchemaAndroidTask: fetch/read 'sourceCompatibility' for android app/lib from 'android.compileOptions'
  • JsonSchemaPlugin: replace deprecated 'project.buildDir' with 'project.layout.buildDirectory'
  • remove usage of deprecated (for removal) java.security.AccessController
  • align access modifier for 3 properties in Jsonschema2PojoTask

* bump maven plugin versions
* remove java-* profiles
* ensure that gradle wrappers SHA256 is matching the ones listed on https://gradle.org/release-checksums/#8.9
* GenerateJsonSchemaAndroidTask: fetch/read 'sourceCompatibility' for android app/lib from 'android.compileOptions'
* JsonSchemaPlugin: replace deprecated 'project.buildDir' with 'project.layout.buildDirectory'
* remove usage of deprecated (for removal) java.security.AccessController
* align access modifier for 3 properties in Jsonschema2PojoTask
@unkish
unkish requested a review from joelittlejohn December 9, 2025 17:36
@unkish

unkish commented Dec 9, 2025

Copy link
Copy Markdown
Collaborator Author

Required "Test JDK 8" pending check - will never be completed due to JDK 8 -> 17 change

@joelittlejohn

Copy link
Copy Markdown
Owner

I've stepped through all files and it looks good to me @unkish! Great stuff. I'm going to assume that all those plugin and library version changes are needed to have JDK17 compatible versions.

Are you happy for me to merge of is there anything outstanding that you still feel needs to be addressed?

@joelittlejohn

Copy link
Copy Markdown
Owner

I have also been thinking that we should remove the Ant plugin. It's entirely legacy now IMO and hard to justify continuing to maintain it with new versions.

@unkish

unkish commented Dec 9, 2025 •

Copy link
Copy Markdown
Collaborator Author

I'm going to assume that all those plugin and library version changes are needed to have JDK17 compatible versions.

To be honest not all of them were needed, I've bumped them to get through some noise.
I'm sorry for the mess that I have caused :(
I have reverted all unnecessary version update changes back to original ones.

Are you happy for me to merge of is there anything outstanding that you still feel needs to be addressed?

  • PR now has two commits (which could be squashed) - but that would trigger another build
  • after PR get's merged I guess repository settings would have to be modified with respect to blocking on "Test JDK 8". I'm not quite positive as to what will happen to old PR's though
  • would that be considered a breaking change ? should it go to 1.3.x branch or master is fine ?

Other than above I haven't spotted anything critical - please feel free to merge if you are happy with the changes.

@unkish

unkish commented Dec 9, 2025

Copy link
Copy Markdown
Collaborator Author

I have also been thinking that we should remove the Ant plugin. It's entirely legacy now IMO and hard to justify continuing to maintain it with new versions.

I'll give it a go in a separate PR

@joelittlejohn
joelittlejohn merged commit 3f35c80 into joelittlejohn:master Dec 9, 2025
@joelittlejohn

Copy link
Copy Markdown
Owner

I've changed the branch protection rules for master to use the Java 17 check instead of Java 8.

@unkish
unkish deleted the issues/jdk17_baseline branch December 10, 2025 07:45
@joelittlejohn joelittlejohn changed the title Move jdk baseline to 17 Require JDK 17 Jan 31, 2026
@joelittlejohn joelittlejohn added this to the 1.3.0 milestone Jan 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants