Skip to content

build: replace deprecated jlink argument#7953

Merged
jeremylong merged 1 commit intodependency-check:mainfrom
chadlwilson:fix-compress-deprecation
Sep 23, 2025
Merged

build: replace deprecated jlink argument#7953
jeremylong merged 1 commit intodependency-check:mainfrom
chadlwilson:fix-compress-deprecation

Conversation

@chadlwilson
Copy link
Copy Markdown
Collaborator

Description of Change

--compress=2 is deprecated with JDK 21. It is equivalent to zip-6 (the default).

https://github.com/openjdk/jdk/blob/61c5245bf7d6626b0c816612adcb0d94d6863644/src/jdk.jlink/share/classes/jdk/tools/jlink/resources/plugins.properties#L316

Removes docker build warning Warning: The 2 argument for --compress is deprecated and may be removed in a future release

Related issues

N/A

Have test cases been added to cover the new functionality?

yes

Signed-off-by: Chad Wilson <29788154+chadlwilson@users.noreply.github.com>
@jeremylong jeremylong merged commit b3aa3f2 into dependency-check:main Sep 23, 2025
5 checks passed
@chadlwilson chadlwilson deleted the fix-compress-deprecation branch September 23, 2025 11:03
@jeremylong jeremylong added this to the 12.1.6 milestone Sep 23, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants