Skip to content

chore: bump java development to 25.0#8365

Merged
jeremylong merged 2 commits intomainfrom
scratch/java17
Mar 16, 2026
Merged

chore: bump java development to 25.0#8365
jeremylong merged 2 commits intomainfrom
scratch/java17

Conversation

@jeremylong
Copy link
Copy Markdown
Collaborator

Description of Change

While ODC is compiled to Java 11.0 - the build itself requires Java 17:

[ERROR] Failed to execute goal org.jsonschema2pojo:jsonschema2pojo-maven-plugin:1.3.3:generate 
(generate-knownexploited) on project dependency-check-core: Execution generate-knownexploited of goal org.jsonschema2pojo:jsonschema2pojo-maven-plugin:1.3.3:generate failed: Unable to load the mojo 'generate' 
in the plugin 'org.jsonschema2pojo:jsonschema2pojo-maven-plugin:1.3.3' due to an API incompatibility: 
org.codehaus.plexus.component.repository.exception.ComponentLookupException: 
org/jsonschema2pojo/maven/Jsonschema2PojoMojo has been compiled by a more recent version of the 
Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions 
up to 55.0           

This PR simply bumps the .java-version file and README.md documentation.

@jeremylong jeremylong changed the title bump: java development to 17.0 chore: bump java development to 17.0 Mar 14, 2026
@chadlwilson
Copy link
Copy Markdown
Collaborator

chadlwilson commented Mar 15, 2026

Oops, missed this - thanks. The canonical official build now runs with Java 25, so you might want to set it to that for consistency with GitHub actions.

jdk_default_version: [ '25' ] # Single JDK version to run Maven with and use for compilation etc

Personally I use mise locally to version manage tools these days. Might be worth considering as would allow us to define the other tools/runtimes needed for running certain tests (either via the legacy ASDF-compatible .tool-versions or the richer mise.toml format) - things like ruby/bundler, npm, pnpm, yarn, dotnet etc etc. It’s really ideal for working with an ecosystem polyglot project like this, and ensuring agentic tools working on command line have the right versions of things.

Example in real project: https://github.com/gocd/gocd/blob/master/mise.toml

@marcelstoer
Copy link
Copy Markdown
Collaborator

Personally I use mise locally

Thanks, didn't know this.

A polyglot tool version manager. Replaces asdf, nvm, pyenv, rbenv, and more — one tool for every language.

Sounds promising 👍

@jeremylong jeremylong changed the title chore: bump java development to 17.0 chore: bump java development to 25.0 Mar 16, 2026
@jeremylong jeremylong merged commit 51f6e1f into main Mar 16, 2026
16 checks passed
@jeremylong jeremylong deleted the scratch/java17 branch March 16, 2026 11:52
@jeremylong jeremylong added this to the 12.2.1 milestone Apr 11, 2026
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.

3 participants