Settings to configuration with sonarqube v8.x

  • I am upgrading from SonarQube 6.7 to SonarQube 8.6.x
  • with SonarQube 6.7, I used SensorContext.settings().getProperties(), since in latest version settings() is deprecated and suggested to use config(), how to achieve this?


First, I think it’s worth noting that you can’t upgrade directly from 6.7 to 8.6. You’ll need to upgrade to 7.9.5 in the middle.

I guess you’re upgrading a custom plugin to work with the new version?