[
https://issues.apache.org/jira/browse/CASSANDRA-18262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17709361#comment-17709361
]
Maxim Muzafarov commented on CASSANDRA-18262:
---------------------------------------------
[~smiklosovic]
I use the SDKMAN locally to switch between different JDKs and to run tests
locally against different JDKs. I have added the "minimally supported jdk
version" to the {{.sdkmanrc}} file in the project root. If a directory contains
the {{.sdkmanrc}} file, it will set the Java version based on the contents of
the file when the directory is checkouted (sdkman_auto_env=true is required
here).
https://sdkman.io/usage#env
Here is a feature request for IntelliJ IDEA to achieve it, I hope it will
eventually be completed:
https://youtrack.jetbrains.com/issue/IDEA-246351/Use-SDKMANs-.sdkmanrc-file-to-determine-the-Java-version-for-the-project
It is also a common practice for other projects, e.g. Spring Framework has it:
https://github.com/spring-projects/spring-framework/blob/main/.sdkmanrc
I think it might also make it easier for the Cassandra project to get the right
answer for "what is a minimally supported version".
> Switch checkstyle running only with JDK8 to be run with JDK11
> -------------------------------------------------------------
>
> Key: CASSANDRA-18262
> URL: https://issues.apache.org/jira/browse/CASSANDRA-18262
> Project: Cassandra
> Issue Type: Task
> Components: Build
> Reporter: Ekaterina Dimitrova
> Assignee: Maxim Muzafarov
> Priority: Normal
> Fix For: 5.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Currently we run checkstyle, eclipse warnings (and probably anything else?)
> only with JDK8.
> In preparation to remove JDK8 we need to switch those to run with JDK11.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]