You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ma...@apache.org on 2020/02/22 16:45:53 UTC
[kafka] branch trunk updated: MINOR: set scala version
automatically based on gradle.properties
This is an automated email from the ASF dual-hosted git repository.
manikumar pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/trunk by this push:
new bf16e35 MINOR: set scala version automatically based on gradle.properties
bf16e35 is described below
commit bf16e358610222320ed0b6ffbca39536121c132e
Author: Andras Katona <ak...@cloudera.com>
AuthorDate: Sat Feb 22 22:14:51 2020 +0530
MINOR: set scala version automatically based on gradle.properties
Author: Andras Katona <ak...@cloudera.com>
Reviewers: Ismael Juma <is...@juma.me.uk>, Manikumar Reddy <ma...@gmail.com>
Closes #7953 from akatona84/kafkarunclass-auto-scala-version
---
bin/kafka-run-class.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/bin/kafka-run-class.sh b/bin/kafka-run-class.sh
index 90ea5a5..09f6997 100755
--- a/bin/kafka-run-class.sh
+++ b/bin/kafka-run-class.sh
@@ -49,6 +49,9 @@ base_dir=$(dirname $0)/..
if [ -z "$SCALA_VERSION" ]; then
SCALA_VERSION=2.12.10
+ if [[ -f "$base_dir/gradle.properties" ]]; then
+ SCALA_VERSION=`grep "^scalaVersion=" "$base_dir/gradle.properties" | cut -d= -f 2`
+ fi
fi
if [ -z "$SCALA_BINARY_VERSION" ]; then