Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-7258

The project version should be optional

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.1
    • Component/s: Scanner
    • Labels:
      None

      Description

      In the Java world, Maven enforced a good practice that is to always set the version of your project inside the POM file. While this became mainstream in the Java world, this is definitely not the case in most other technologies/platforms.

      Because SQ was initially designed to work only for Maven, the concept of "version" has been made mandatory but we should relax this. Scanners should not fail if "sonar.projectVersion" is not set, and simply not set the version in the report sent to the server (with protobuf, it will be an empty String).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              julien.henry Julien Henry
              Reporter:
              fabrice.bellingard Fabrice Bellingard
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: