-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-53946][BUILD] Upgrade SBT to 1.11.7 #52653
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
base: master
Are you sure you want to change the base?
Conversation
Waiting for #52652 merged. |
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.
LGTM if it works
@sarutak, the root cause of failure should be
see coursier/coursier#2942 for more details. So, excluding a single dep does not solve the real issue. I also experienced such failure internally even with SBT before 1.9.3, due to incomplete downloaded artifacts under |
project/SparkBuild.scala
Outdated
object MLlibLocal { | ||
lazy val settings = Seq( | ||
excludeDependencies ++= Seq( | ||
ExclusionRule("org.slf4j", "slf4j-api")) |
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.
Instead of excluding, does it work if overriding slf4j-api
version globally in
object DependencyOverrides {
...
}
?
2604e3c
to
7cfb54e
Compare
I had already seen the thread and I understand this solution is just a workaround but I think it's better to keep up with the latest SBT if workaround exists. |
@sarutak, I agree to move forward.
Excluding |
Yes, I think overriding is safer too and I just forgot to remove |
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.
LGTM if CI passes.
What changes were proposed in this pull request?
This PR aims to upgrade SBT to 1.11.7
Release Notes:
Difference between 1.9.3 and 1.11.7 is as follows.
sbt/sbt@v1.9.3...v1.11.7
To upgrade SBT, this PR also changes SparkBuild.scala to exclude
slf4j-api
from mllib-local.Without this change, running ./dev/test-dependencies.sh and ./dev/mima in this order will result in failure.
slf4j-api-1.7.5
is a transitive dependency of mllib-local.At runtime, slf4j-api-2.0.17 will be used so
dev/test-dependencies.sh
downloadsslf4j-api-1.7.5.pom
but does not downloadslf4j-api-1.7.5.jar
.On the other hand,
dev/mima
will fetchslf4j-api-1.7.5.jar
from.m2
even though it's not used at runtime but it's absent in.m2
.Why are the changes needed?
We last upgraded SBT two years ago.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
GA.
Was this patch authored or co-authored using generative AI tooling?
No.