Skip to content

Gradle Build and available OpenJdk Releases #66

@free2create

Description

@free2create

Since the current gradle build only supports openjdk15 and below, in order to run all examples, the most direct approach users can take would be to:
A) Install openjdk 15
or
B) Upgrade the Gradle build system so openjdk17 is supported.

Either approach can turn out to be more complex than expected.

OpenJdk 15 has been withdrawn from circulation and users must install from the OpenJDK Archives.

On Linux Debian based systems a user might be tempted to try and retro fit this into Debians alternatives system i, which would be a mistake. They should just add the directory to their PATH so it overrides the system java version.

Also the current linux instructions no longer work since openjdk17 will be installed, breaking the build.
That then leaves installing java 11
sudo apt install openjdk-11-jdk
so that most of the examples , except sealed classes, switch pattern matching, and records should be able to be experimented with.

Gradle Upgrade In March of 2022 I spent about 2 days trying to upgrade Gradle first to 7.1.X, then 7.2.x, then 7.3.x encountering new problems with each successive version which was to resolve previous problems. Based on this time investment its not really something most users new to Java and the JVM should attempt. This makes me appreciate other build systems with more constrained approaches.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions