MINOR: set scala version automatically based on gradle.properties
Author: Andras Katona
Reviewers: Ismael Juma Manikumar Reddy
Closes from akatona84/kafkarunclass-auto-scala-version
@@ -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
