Skip to content

Support for Java 11 #15

@rkrisztian

Description

@rkrisztian

Currently the GoCD main code is written with Java 11 compatibility:
https://github.com/gocd/gocd/blob/master/build.gradle#L151
Compared to that, GoCD plugins are configured to only use Java 8 features. I wish to use Java 9 features like Map.of, but I cannot, because of this rather outdated restriction. Could you please update this limitation?

Disclaimer: yes, probably we can derive the conclusion for ourselves that these Gradle files are just helpers and we can override the target compatibility in our plugin, but the helper defines what we are inclined to assume as "this is how it works, they probably know it better, and we should just trust it, rather than potentially breaking stuff", and it takes time to understand the real situation. By the time I collected this information, I already went ahead and coded without Map.of, as well as opened this ticket.

Edit: If Java 8 has to be kept for compatibility reasons in this repository, at least we should document somehow that we are allowed to go up to Java 11...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions