This is an automated email from the ASF dual-hosted git repository.
rsivaram pushed a commit to branch 2.4
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/2.4 by this push:
new e2a54cc MINOR: Ensure same version of scala library is used for
compile and at runtime (#9168)
e2a54cc is described below
commit e2a54cc23beda41cb087ab598aec2a5fbed73ff5
Author: Rajini Sivaram <[email protected]>
AuthorDate: Wed Aug 12 23:39:21 2020 +0100
MINOR: Ensure same version of scala library is used for compile and at
runtime (#9168)
Reviewers: Ismael Juma <[email protected]>
---
build.gradle | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/build.gradle b/build.gradle
index cc0582a..171c20e 100644
--- a/build.gradle
+++ b/build.gradle
@@ -73,8 +73,10 @@ allprojects {
}
}
}
- configurations {
- runtime {
+ configurations.all {
+ // zinc is the Scala incremental compiler, it has a configuration for
its own dependencies
+ // that are unrelated to the project dependencies, we should not change
them
+ if (name != "zinc") {
resolutionStrategy {
force(
// ensure we have a single version of scala jars in the classpath,
we enable inlining