Finding code snapshot of SQ 7.5 release

github

(WillJudd) #1

How can we get the source code of this release to build ourselves?


SonarQube 7.5 Released
(Christophe Lévis) #2

Hi @Will,

The source code of SonarQube Community Edition is available on GitHub:


(WillJudd) #5

How do we get the source code for this release?

There are no tags any more so it is impossible to download and build this release ourselves.

Is SonarSource still committed to being truly Open Source?


(Adam Gabryś) #6

The release commit is here:


(WillJudd) #7

Is this complete, reliable and does this support migration?


(Julien Lancelot) #8

Hi Will,

You can download the source code of SonarQube 7.5 here : http://repo2.maven.org/maven2/org/sonarsource/sonarqube/sonar-application/7.5/sonar-application-7.5.zip
This is a released version, so yes it’s complete reliable and it supports migration.

Regards,
Julien Lancelot


(WillJudd) #9

Hello Julien,

Thanks for your assistance, however this link does NOT contain the source code. It only contains the compiled binaries. Browsing the rest of that location I could also not find the source code.

Please can you provide an alternative with the source code.

Will


(Scott) #10

Hi.

Go to https://github.com/SonarSource/sonarqube/tree/cb851ba202973bd468e070572c1e3b0b0437d2f4, then click on the button “Clone or download” > “Download ZIP”.

Direct link: https://github.com/SonarSource/sonarqube/archive/cb851ba202973bd468e070572c1e3b0b0437d2f4.zip


(Simon Brandhof) #11

The tag “7.5” was just added.


(WillJudd) #12

Thanks Simon.

Have downloaded and attempted to build following instructions in the README.md file using:

gradlew licenseFormat --rerun-tasks
gradlew build

24 Tests fail in sonar-plugin-api:Test task.

Most of those failing are triggering NumberFormatException on null values. An example is below.

org.sonar.api.batch.sensor.internal.SensorContextTesterTest > testSettings FAILED
    java.lang.NumberFormatException: For input string: "null"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Long.parseLong(Long.java:589)
        at java.lang.Long.parseLong(Long.java:631)
        at org.sonar.api.utils.Version.parseFieldAsLong(Version.java:175)
        at org.sonar.api.utils.Version.parse(Version.java:137)
        at org.sonar.api.internal.ApiVersion.load(ApiVersion.java:46)
        at org.sonar.api.batch.sensor.internal.SensorContextTester.<init>(SensorContextTester.java:121)
        at org.sonar.api.batch.sensor.internal.SensorContextTester.create(SensorContextTester.java:125)
        at org.sonar.api.batch.sensor.internal.SensorContextTesterTest.prepare(SensorContextTesterTest.java:73)

Is there a settings file missing or other?

Kind regards,

Will


(WillJudd) #13

Further to this, the distribution is created even with the 24 failing tests, however on start the following error appears.

2019.01.12 10:47:33 INFO  web[][o.s.p.ProcessEntryPoint] Starting web
2019.01.12 10:47:34 INFO  web[][o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
2019.01.12 10:47:35 ERROR web[][o.s.s.p.Platform] Web server startup failed
java.lang.NumberFormatException: For input string: "null"
	at java.lang.NumberFormatException.forInputString(Unknown Source)
	at java.lang.Long.parseLong(Unknown Source)
	at java.lang.Long.parseLong(Unknown Source)
	at org.sonar.api.utils.Version.parseFieldAsLong(Version.java:175)
	at org.sonar.api.utils.Version.parse(Version.java:137)
	at org.sonar.api.internal.ApiVersion.load(ApiVersion.java:46)
	at org.sonar.server.platform.platformlevel.PlatformLevel1.configureLevel(PlatformLevel1.java:85)
	at org.sonar.server.platform.platformlevel.PlatformLevel.configure(PlatformLevel.java:74)
	at org.sonar.server.platform.Platform.start(Platform.java:208)
	at org.sonar.server.platform.Platform.startLevel1Container(Platform.java:170)
	at org.sonar.server.platform.Platform.init(Platform.java:86)
	at org.sonar.server.platform.web.PlatformServletContextListener.contextInitialized(PlatformServletContextListener.java:45)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4745)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5207)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)