codacy / codacy-coverage-reporter

Multi-language coverage reporter for Codacy
https://www.codacy.com
Other
134 stars 94 forks source link

codacy-coverage-reporter prints wrong version #8

Closed pedrorijo91 closed 8 years ago

pedrorijo91 commented 8 years ago

When running with --help flag, it prints

codacy-coverage-reporter 1.0.0
Usage: codacy-coverage-reporter [options]

  -l <value> | --language <value>
        foo is an integer property
  -t <value> | --projectToken <value>
        your project API token
  -r <value> | --coverageReport <value>
        your project API token
  --codacyApiBaseUrl <value>
        the base URL for the Codacy API
  --prefix <value>
        the project path prefix
  --help
        prints this usage text

When the actual version is 1.0.4 This version should be fetched from the pom or something. This way you have to manually change in every release

https://github.com/codacy/codacy-coverage-reporter/blob/master/src/main/scala/com/codacy/CodacyCoverageReporter.scala#L65

pedrorijo91 commented 8 years ago

http://stackoverflow.com/questions/8957025/sbt-including-the-version-number-in-a-program

machadoit commented 8 years ago

It will be included when the version number is well defined during the automated build process