-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-45272][BUILD][INFRA][DOCS] Remove Scala version specific comments, and scala-2.13 profile usage #43049
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -24,9 +24,9 @@ set -e | |||
| FWDIR="$(cd "`dirname "$0"`"/..; pwd)" | ||||
| cd "$FWDIR" | ||||
|
|
||||
| SPARK_PROFILES=${1:-"-Pscala-2.13 -Pmesos -Pkubernetes -Pyarn -Pspark-ganglia-lgpl -Pkinesis-asl -Phive-thriftserver -Phive"} | ||||
| TOOLS_CLASSPATH="$(build/sbt -Pscala-2.13 -DcopyDependencies=false "export tools/fullClasspath" | grep jar | tail -n1)" | ||||
| OLD_DEPS_CLASSPATH="$(build/sbt -Pscala-2.13 -DcopyDependencies=false $SPARK_PROFILES "export oldDeps/fullClasspath" | grep jar | tail -n1)" | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While cleaning this up, I suggest removing spark/dev/change-scala-version.sh Line 22 in 5f643ee
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I commented |
||||
| SPARK_PROFILES=${1:-"-Pmesos -Pkubernetes -Pyarn -Pspark-ganglia-lgpl -Pkinesis-asl -Phive-thriftserver -Phive"} | ||||
| TOOLS_CLASSPATH="$(build/sbt -DcopyDependencies=false "export tools/fullClasspath" | grep jar | tail -n1)" | ||||
| OLD_DEPS_CLASSPATH="$(build/sbt -DcopyDependencies=false $SPARK_PROFILES "export oldDeps/fullClasspath" | grep jar | tail -n1)" | ||||
|
|
||||
| rm -f .generated-mima* | ||||
|
|
||||
|
|
@@ -42,7 +42,7 @@ $JAVA_CMD \ | |||
| -cp "$TOOLS_CLASSPATH:$OLD_DEPS_CLASSPATH" \ | ||||
| org.apache.spark.tools.GenerateMIMAIgnore | ||||
|
|
||||
| echo -e "q\n" | build/sbt -Pscala-2.13 -mem 5632 -DcopyDependencies=false "$@" mimaReportBinaryIssues | grep -v -e "info.*Resolving" | ||||
| echo -e "q\n" | build/sbt -mem 5632 -DcopyDependencies=false "$@" mimaReportBinaryIssues | grep -v -e "info.*Resolving" | ||||
| ret_val=$? | ||||
|
|
||||
| if [ $ret_val != 0 ]; then | ||||
|
|
||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -440,13 +440,11 @@ | |
| <version>${project.version}</version> | ||
| <type>test-jar</type> | ||
| </dependency> | ||
| <!-- #if scala-2.13 --> | ||
| <dependency> | ||
| <groupId>org.scala-lang.modules</groupId> | ||
| <artifactId>scala-parallel-collections_${scala.binary.version}</artifactId> | ||
| <version>1.0.4</version> | ||
| </dependency> | ||
| <!-- #endif scala-2.13 --> | ||
| <dependency> | ||
| <groupId>com.twitter</groupId> | ||
| <artifactId>chill_${scala.binary.version}</artifactId> | ||
|
|
@@ -3648,13 +3646,14 @@ | |
| </properties> | ||
| </profile> | ||
|
|
||
| <!-- | ||
| SPARK-34774 Add this property to ensure change-scala-version.sh can replace the public `scala.version` | ||
| property correctly. | ||
| --> | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nesting a comment doesn't work .. so I took it out. |
||
| <!-- | ||
| <profile> | ||
| <id>scala-2.13</id> | ||
HyukjinKwon marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <properties> | ||
| <!-- | ||
| SPARK-34774 Add this property to ensure change-scala-version.sh can replace the public `scala.version` | ||
| property correctly. | ||
| --> | ||
| <scala.version>2.13.11</scala.version> | ||
| </properties> | ||
| <build> | ||
|
|
@@ -3664,6 +3663,7 @@ | |
| </pluginManagement> | ||
| </build> | ||
| </profile> | ||
| --> | ||
|
|
||
| <!-- | ||
| This is a profile to enable the use of the ASF snapshot and staging repositories | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we sure about deleting these comments? I was hesitant before, because I didn't know if we would need to use a similar approach to dynamically change dependencies when supporting Scala 3, so I took a conservative approach and kept them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to change
scala-parallel-collectionsfor Scala 3 upgrade? I would think we'd need it for other libraries. I am not removing the mechanism.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that for Scala 3 the
scala.binary.versionis always3? Then it looks like we can delete this comment, the corresponding dependency for Scala 3 isIt seems that this dependency no longer needs to be dynamically changed.