Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2992

Improve the warning message when building with Java version < 9

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.11.0
    • Component/s: Build
    • Labels:
      None

      Description

      It's confusing that we print "1.8" and "1.9" in the build warning now that the releases are referred to as "8" and "9".

      Consider changing the warning to:

              gradle.rootProject.logger.error("\nWARNING:\nJava ${JavaVersion.VERSION_1_9.getMajorVersion()} is required to build the driver: " +
                      "you are using Java ${JavaVersion.current().getMajorVersion()}.")
      

      Which will print:

      Java 9 is required to build the driver: you are using Java 8.
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: