Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support SonarQube 10.x #2616

Closed
wants to merge 10 commits into from
Closed

Commits on Jan 19, 2024

  1. prepare CI to test with SQ 10.x

    - CI is testing with SQ 9.9 LTS and SQ 10.3 with Java 17
      - use SonarQube 10.3.0.82913 for testing
      - use SonarScanner 5.0.1.3006 for testing
    - pom.xml: use Java 17 as default (Java 11 no more supported)
    guwirth committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    f0b4843 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    19b400f View commit details
    Browse the repository at this point in the history
  3. Java 17: Fix InterceptorTest

    agebert committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    1f023b7 View commit details
    Browse the repository at this point in the history
  4. Java 17: Fix more tests

    agebert committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    b7fd5d8 View commit details
    Browse the repository at this point in the history
  5. Bump org.sonarsource.api.plugin:sonar-plugin-api from 9.14.0.375 to 9…

    ….15.0.435
    
    Refactor the code to use new artifact sonar-plugin-api-test-fixtures.
    agebert committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    38f0efd View commit details
    Browse the repository at this point in the history
  6. Refactor: use slf4j for logging

    Get rid of deprecated LoggerLevel.
    agebert committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    d965f09 View commit details
    Browse the repository at this point in the history
  7. Bump org.sonarsource.api.plugin:sonar-plugin-api from 9.15.0.435 to 1…

    …0.3.0.1951
    
    And bump also org.sonarsource.api.plugin:sonar-plugin-api-test-fixtures
    
    Some classes move to org.sonar.api.testfixtures.measure package.
    agebert committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    f484dee View commit details
    Browse the repository at this point in the history
  8. Bump org.sonarsource.sonarqube:sonar-plugin-api-impl from 9.9.0.65466…

    … to 10.3.0.82913
    
    And bump org.sonarsource.sonarqube:sonar-testing-harness
    agebert committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    48cfedc View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2024

  1. Adjust integration test: metric key directories is gone

    The call /api/measures/component does no longer support query paramter metricKeys=directoriesi.
    
    This request
      curl 'http://localhost:9000/api/measures/component?component=smoketest_project&metricKeys=ncloc,lines,statements,classes,files,directories,functions,comment_lines_density,comment_lines,duplicated_lines_density,duplicated_lines,duplicated_blocks,duplicated_files,complexity,cognitive_complexity,file_complexity,violations,lines_to_cover,coverage,line_coverage,branch_coverage,uncovered_conditions,uncovered_lines,tests,test_failures,test_errors,skipped_tests,test_execution_time,test_success_density,false_positive_issues,open_issues,confirmed_issues,reopened_issues,code_smells,sqale_index,sqale_debt_ratio,bugs,reliability_remediation_effort,vulnerabilities,security_remediation_effort,security_hotspots'
    
    returned error 404 with body:
      {"errors":[{"msg":"The following metric keys are not found: directories"}]}
    agebert committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    cf24bde View commit details
    Browse the repository at this point in the history
  2. Adjust integration test which uses /api/rules/create

    Change in SonarQube 10.0 for /api/rules/create:
      Drop deprecated keys: 'custom_key', 'template_key', 'markdown_description', 'prevent_reactivation'
    
    The parameter names changed.
      custom_key -> customKey
      template_key -> templateKey
      markdown_description -> markdownDescription
    
    We got for example this error:
     {"errors":[{"msg":"The markdownDescription parameter is missing"}]}
    agebert committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    32d7d89 View commit details
    Browse the repository at this point in the history