Skip to content

Conversation

@bgilbert
Copy link
Member

Build with --release instead of -source and -target, to ensure we use the correct language rules and system classes. Fixes build warning on Java > 22:

Warning:  location of system modules is not set in conjunction with -source 22
  not setting the location of system modules may lead to class files that cannot run on JDK 22
  --release 22 is recommended instead of -source 22 -target 22 because it sets the location of system modules automatically

Run CI on both the minimum supported and latest Java.

Build with --release instead of -source and -target, to ensure we use the
correct language rules and system classes.  Fixes build warning on
Java > 22:

    Warning:  location of system modules is not set in conjunction with -source 22
      not setting the location of system modules may lead to class files that cannot run on JDK 22
      --release 22 is recommended instead of -source 22 -target 22 because it sets the location of system modules automatically

Signed-off-by: Benjamin Gilbert <bgilbert@cs.cmu.edu>
It should be safe to generate the dist jar with the latest Java, but just
to be sure, continue using Java 22.

setup-java doesn't provide an alias for the latest Java release, so
specify it by version.

Signed-off-by: Benjamin Gilbert <bgilbert@cs.cmu.edu>
@openslide-bot
Copy link
Member

DCO signed off ✔️

All commits have been signed off. You have certified to the terms of the Developer Certificate of Origin, version 1.1. In particular, you certify that this contribution has not been developed using information obtained under a non-disclosure agreement or other license terms that forbid you from contributing it under the GNU Lesser General Public License, version 2.1.

@bgilbert bgilbert merged commit 4d1f325 into openslide:main Jan 26, 2025
8 checks passed
@bgilbert bgilbert deleted the java branch January 26, 2025 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants