From 99d4ed6c92d5ea0395c4cec9f7f7576027218bcb Mon Sep 17 00:00:00 2001 From: yangjie01 Date: Thu, 18 Mar 2021 07:33:23 -0500 Subject: [PATCH] [SPARK-34774][BUILD] Ensure change-scala-version.sh update scala.version in parent POM correctly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### What changes were proposed in this pull request? After SPARK-34507, execute` change-scala-version.sh` script will update `scala.version` in parent pom, but if we execute the following commands in order: ``` dev/change-scala-version.sh 2.13 dev/change-scala-version.sh 2.12 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 3.4.1 3.2.2 - 2.12.10 + 2.13.5 2.12 2.0.0 --test ``` seem 'scala.version' property was not update correctly. So this pr add an extra 'scala.version' to scala-2.12 profile to ensure change-scala-version.sh can update the public `scala.version` property correctly. ### Why are the changes needed? Bug fix. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? **Manual test** Execute the following commands in order: ``` dev/change-scala-version.sh 2.13 dev/change-scala-version.sh 2.12 git status ``` **Before** ``` diff --git a/pom.xml b/pom.xml index ddc4ce2f68..f43d8c8f78 100644 --- a/pom.xml +++ b/pom.xml -162,7 +162,7 3.4.1 3.2.2 - 2.12.10 + 2.13.5 2.12 2.0.0 --test ``` **After** No git diff. Closes #31865 from LuciferYang/SPARK-34774. Authored-by: yangjie01 Signed-off-by: Sean Owen (cherry picked from commit 2e836cdb598255d6b43b386e98fcb79b70338e69) Signed-off-by: Sean Owen --- pom.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pom.xml b/pom.xml index 77c4ea8f46623..b5d64b9079411 100644 --- a/pom.xml +++ b/pom.xml @@ -3233,6 +3233,13 @@ scala-2.12 + + + 2.12.10 +