您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Pierre 3fd6248dd0 Update license templates for 2023 1年前
..
src/main Update license templates for 2023 1年前
README.md Fix sonar-ws-generator/README 5 年前
build.gradle SONAR-15595 Replace Gradle deprecated dependency scopes 1年前
run.sh Double-quote variables used in command arguments in Bash 5 年前

README.md

What is this project used for?

The sonar-ws-generator must be used to generate the java sources used to access the Web API (HTTP) of SonarQube. The generated sources are not compilable on their own, but require to be copied in the sonar-ws module.

How do I use it?

  • Make your changes on the SonarQube Web API (protobuf specification of responses in sonar-ws or WebService implementations in sonar-server)
  • Build SonarQube with ./gradlew build -x test -x obfuscate)
  • Run generator: sonar-ws-generator/run.sh
  • Check your git status: the generated sources are copied in sonar-ws/src/main/java. Please double check the changed code.
  • Now you can rebuild sonar-ws and use it in integration tests

Hints

  • A request parameter has type List<String> if its description contains “comma-separated” or “list of” (case insensitive). Examples:
    • “Comma-separated list of metric keys”
    • “List of metric keys”