SonarQube支持Java9吗? [英] Does SonarQube support Java9?
问题描述
问题实际上是双重的:
- 使用SonarQube可以分析 Java9项目吗?
- SonarQube本身可以在Java9 JVM上运行吗?
- Can Java9 projects be analysed with SonarQube?
- Can SonarQube itself run on a Java9 JVM?
推荐答案
TL ; DR:是的!它支持分析,显然是从2017年7月3日开始(但他们拼命试图隐瞒事实......)
TL;DR: YES!!! It supports analysis, apparently since 3rd July 2017 (But they are desperately trying to hide the fact...)
As现在(2017-10-24,SonarQube版本6.6),SonarQube 可以使用。 html#sonarjava-4.11-releasedrel =nofollow noreferrer> SonarJava 4.11或更新版,但在Java9 JVM上运行不受官方支持。
As of now (2017-10-24, SonarQube version 6.6), SonarQube can analyse Java9 code using SonarJava 4.11 or newer, but running on a Java9 JVM is not officially supported.
SonarJava页面声明它支持Java版本到10:
The SonarJava page states it supports Java versions through 10:
支持的版本,框架和特殊分析
Supported versions, frameworks and special analyses
- Java语言版本到10
SonarSource团队很高兴宣布发布SonarJava版本4.11。
The SonarSource Team is pleased to announce the release of SonarJava version 4.11.
此版本引入了对Java 9项目的支持。但这意味着什么?
This version introduces support for Java 9 projects. But what does that mean?
这意味着能够解析jigsaw项目引入的module-info.java源文件。
This means being able to parse the module-info.java source files introduced by the jigsaw project.
此外,同一页面明确列出对以下内容的支持:
Also, same page explicitly lists support for:
- 试用资源增强
- 接口私有方法
- 钻石运营商扩展
- JaCoCo报告Java9类
- Try-With-Resources enhancements
- Interface private methods
- Diamond Operator Extension
- JaCoCo reports for Java9 classes
支持的平台
Supported Platforms
SonarQube Java分析器能够分析任何类型的Java源文件,无论它们遵循的Java版本如何。但SonarQube分析和SonarQube服务器需要特定版本的JVM。
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.
支持:
- Oracle JRE7❌
- Oracle JRE8✓
- Oracle JRE9❌
- OpenJDK 7❌
- OpenJDK8✓
- OpenJDK 9❌
- IBM JRE ❌
- GCJ❌
- Oracle JRockit❌
- Oracle JRE 7 ❌
- Oracle JRE 8 ✓
- Oracle JRE 9 ❌
- OpenJDK 7 ❌
- OpenJDK 8 ✓
- OpenJDK 9 ❌
- IBM JRE ❌
- GCJ ❌
- Oracle JRockit ❌
- 搜索字符串的SonarQube JIRA队列java 9
- 搜索字符串的SonarQube JIRA队列< a href =https://jira.sonarsource.com/browse/SONARJAVA-1532?jql=text%20 ~%20%22java9%22 =nofollow noreferrer>java9
- SonarQube JIRA票据MMF-833:让SonarJava支持分析Java 9项目ects
- SonarQube JIRA queue for search string "java 9"
- SonarQube JIRA queue for search string "java9"
- SonarQube JIRA ticket "MMF-833: Make SonarJava supporting the analyzis of Java 9 projects"
这篇关于SonarQube支持Java9吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!