Updated build_distribution script to only use Java 8.
Change on 2017/09/28 by tball
@@ -31,7 +31,11 @@ DISTRIBUTION_NAME=j2objc-$1
# Set j2objc flags used for public builds.
TRANSLATE_GLOBAL_FLAGS="--doc-comments;--generate-deprecated;--swift-friendly"
+# Force Java 8 compilation
+JAVA_HOME=`/usr/libexec/java_home -v 1.8`
+
ENV_CMD="env -i PATH=$PATH HOME=$HOME J2OBJC_VERSION=${1%/} PROTOBUF_ROOT_DIR=${2%/}"
+ENV_CMD="${ENV_CMD} JAVA_HOME=${JAVA_HOME}"
ENV_CMD="${ENV_CMD} TRANSLATE_GLOBAL_FLAGS=${TRANSLATE_GLOBAL_FLAGS}"
echo "make clean"
