Ganesh Rao B
Ganesh Rao B

Reputation: 501

With Java 8 which version of sonar-ant-task need to be used?

I am using ant script for Sonar code scan .Currently with 'sonar-ant-task-2.2.jar' i am able to execute scan for Java 7. With Java 8 which version of sonar-ant-task need to be used ?

Thanks & Regards

Ganesh Rao

Upvotes: 0

Views: 1084

Answers (2)

SACn
SACn

Reputation: 1924

Read point #2 of Prerequisites at documentation. Use At least the minimal version of Java supported by your SonarQube server is in use.

See this, any JRE v8 will do.

Upvotes: 2

Jeroen Heier
Jeroen Heier

Reputation: 3694

If you have a look at the documentation of the latest scanner you will find this Prerequisites section:

  • SonarQube is already installed
  • At least the minimal version of Java supported by your SonarQube server is in use
  • The language plugins for each of the languages you wish to analyze are installed
  • You have read Analyzing Code Source.
  • Ant 1.7.1 or higher

So using Java 8 is not a problem if you are using SonarQube 5.6+ and using the latest scanner will resolve some issues (see the changelog).

Upvotes: 1

Related Questions