Kousuke Saruta created SPARK-34773:
--------------------------------------

             Summary: change-scala-version fails to modify pom.xml if it 
changes the version from 2.13 to 2.12
                 Key: SPARK-34773
                 URL: https://issues.apache.org/jira/browse/SPARK-34773
             Project: Spark
          Issue Type: Bug
          Components: Build
    Affects Versions: 3.2.0
            Reporter: Kousuke Saruta
            Assignee: Kousuke Saruta


If we change the Scala version to 2.13 and then change the version to 2.12 
using change-scala-version, it fails to modify pom.xml and fails to build.

{code}
$ dev/change-scala-version.sh 2.13
$ dev/change-scala-version.sh 2.12
$ git diff pom.xml
diff --git a/pom.xml b/pom.xml
index 2efa3491a6..79994d0c44 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>
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to