porscheinformatik / sonarqube-licensecheck

SonarQube Licensecheck Plugin
Apache License 2.0
156 stars 58 forks source link

I can't see anything in License Check page in Sonarqube #374

Closed seongilp closed 1 year ago

seongilp commented 1 year ago

Hi, After running gradle command with sonar, I can't see anything in License Check page in Sonarqube. $ gradle sonar Is there anything that I can do?

Janpopan commented 1 year ago

Hi @seongilp can you provide some more context about your project structure?

seongilp commented 1 year ago

Hi, @Janpopan, I am using sonarqube as a docker in my local laptop(MacBook Pro M1 Chip). I've activated sonarqube license check plugin and edited build.gradle file and running command as below

sonarqube {
    properties {
        property "sonar.host.url", "http://localhost:9000"
    }
}

> gradle sonarqube

Above command was running successfully but I can't see anything "License Check" section in in my sonarqube project.

Below URL is that I request on the browser(Chrome 113.0.5672.126 (Official Build) (arm64)).

http://localhost:9000/api/measures/component?component=spring2&metricKeys=licensecheck.license%2Clicensecheck.dependency

Is there any way to see the details?

Janpopan commented 1 year ago

Hi @seongilp what kind of project you try to analyse?

Janpopan commented 1 year ago

Did you read the readme.md

fvclaus commented 1 year ago

@seongilp what version of SonarQube do you use? This plugin is currently broken 10.0+ See #373

One way to check is to open the DevTools and look for this message: image

That's the Vue.Js frontend being blocked.

There are also 404s in the log, but they don't cause issues.

seongilp commented 1 year ago

@fvclaus Hi, I'm using Community EditionVersion 10.0 (build 68432).

fvclaus commented 1 year ago

It won't work with 10.0. See https://github.com/porscheinformatik/sonarqube-licensecheck/pull/375#issuecomment-1606224896 for details

seongilp commented 1 year ago

@fvclaus Thanks! After merging your PR, is it works?

fvclaus commented 1 year ago

It should.

derkoe commented 1 year ago

Thx for @fvclaus this is fixed with #375

derkoe commented 1 year ago

Pre-release is out for that: v6.0.0-alpha-1