SonarQube 是否支持 Java9?
Does SonarQube support Java9?
这个问题实际上是双重的:
- 可以使用 SonarQube Java9 项目 分析 吗?
- SonarQube 本身可以 运行 在 Java9 JVM 上吗?
Same question for Java8
TL;DR: 是的!!!它支持分析,显然是从 2017 年 7 月 3 日开始(但他们拼命 试图掩盖事实...)
截至目前(2017-10-24,SonarQube 版本 6.6),SonarQube 可以使用 SonarJava 4.11 or newer 分析 Java9 代码 ,但是 运行 在 Java9 JVM 上不受官方支持。
SonarQube Java 插件兼容性
The SonarJava page 声明它支持 Java 到 10 的版本:
Supported versions, frameworks and special analyses
- Java language versions through 10
The SonarJava 4.11 release news 还指出:
The SonarSource Team is pleased to announce the release of SonarJava version 4.11.
This version introduces support for Java 9 projects. But what does that mean?
This means being able to parse the module-info.java source files introduced by the jigsaw project.
此外,同一页面明确列出了对以下内容的支持:
- Try-With-Resources 增强功能
- 接口私有方法
- 钻石运算符扩展
- JaCoCo 报告 Java9 类
SonarQube 平台兼容性
Supported Platforms
The SonarQube Java analyzer is able to analyze any kind of Java source files regardless of the version of Java they comply to. But SonarQube analysis and the SonarQube Server require specific versions of the JVM.
支持:
- 甲骨文 JRE 7 ❌
- 甲骨文 JRE 8 ✓
- 甲骨文 JRE 9 ❌
- OpenJDK 7 ❌
- OpenJDK 8 ✓
- OpenJDK 9 ❌
- IBM JRE ❌
- GCJ ❌
- 甲骨文 JRockit ❌
链接:
- 搜索字符串的 SonarQube JIRA 队列 "java 9"
- 搜索字符串的 SonarQube JIRA 队列 "java9"
- SonarQube JIRA 票证"MMF-833: Make SonarJava supporting the analyzis of Java 9 projects"
这个问题实际上是双重的:
- 可以使用 SonarQube Java9 项目 分析 吗?
- SonarQube 本身可以 运行 在 Java9 JVM 上吗?
Same question for Java8
TL;DR: 是的!!!它支持分析,显然是从 2017 年 7 月 3 日开始(但他们拼命 试图掩盖事实...)
截至目前(2017-10-24,SonarQube 版本 6.6),SonarQube 可以使用 SonarJava 4.11 or newer 分析 Java9 代码 ,但是 运行 在 Java9 JVM 上不受官方支持。
SonarQube Java 插件兼容性
The SonarJava page 声明它支持 Java 到 10 的版本:
Supported versions, frameworks and special analyses
- Java language versions through 10
The SonarJava 4.11 release news 还指出:
The SonarSource Team is pleased to announce the release of SonarJava version 4.11.
This version introduces support for Java 9 projects. But what does that mean?
This means being able to parse the module-info.java source files introduced by the jigsaw project.
此外,同一页面明确列出了对以下内容的支持:
- Try-With-Resources 增强功能
- 接口私有方法
- 钻石运算符扩展
- JaCoCo 报告 Java9 类
SonarQube 平台兼容性
Supported Platforms
The SonarQube Java analyzer is able to analyze any kind of Java source files regardless of the version of Java they comply to. But SonarQube analysis and the SonarQube Server require specific versions of the JVM.
支持:
- 甲骨文 JRE 7 ❌
- 甲骨文 JRE 8 ✓
- 甲骨文 JRE 9 ❌
- OpenJDK 7 ❌
- OpenJDK 8 ✓
- OpenJDK 9 ❌
- IBM JRE ❌
- GCJ ❌
- 甲骨文 JRockit ❌
链接:
- 搜索字符串的 SonarQube JIRA 队列 "java 9"
- 搜索字符串的 SonarQube JIRA 队列 "java9"
- SonarQube JIRA 票证"MMF-833: Make SonarJava supporting the analyzis of Java 9 projects"