Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-34774

The `change-scala- version.sh` script not replaced scala.version property correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.2.0
    • 2.4.8, 3.0.3, 3.1.2, 3.2.0
    • Build
    • None

    Description

      Execute the following commands in order

      1. dev/change-scala-version.sh 2.13
      1. dev/change-scala-version.sh 2.12
      1. git status

      there will generate git diff as follow:

      diff --git a/pom.xml b/pom.xml
      index ddc4ce2f68..f43d8c8f78 100644
      --- a/pom.xml
      +++ b/pom.xml
      @@ -162,7 +162,7 @@
           <commons.math3.version>3.4.1</commons.math3.version>
           <!-- managed up from 3.2.1 for SPARK-11652 -->
           <commons.collections.version>3.2.2</commons.collections.version>
      -    <scala.version>2.12.10</scala.version>
      +    <scala.version>2.13.5</scala.version>
           <scala.binary.version>2.12</scala.binary.version>
           <scalatest-maven-plugin.version>2.0.0</scalatest-maven-plugin.version>
           <scalafmt.parameters>--test</scalafmt.parameters>
      

      seem 'scala.version' property was not replaced correctly

      Attachments

        Issue Links

          Activity

            People

              LuciferYang Yang Jie
              LuciferYang Yang Jie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: