diff options
Diffstat (limited to 'dev/mima')
-rwxr-xr-x | dev/mima | 23 |
1 files changed, 10 insertions, 13 deletions
@@ -24,24 +24,21 @@ set -e FWDIR="$(cd "`dirname "$0"`"/..; pwd)" cd "$FWDIR" -echo -e "q\n" | build/sbt oldDeps/update +TOOLS_CLASSPATH="$(build/sbt "export tools/fullClasspath" | tail -n1)" + rm -f .generated-mima* generate_mima_ignore() { - SPARK_JAVA_OPTS="-XX:MaxPermSize=1g -Xmx2g" \ - ./bin/spark-class org.apache.spark.tools.GenerateMIMAIgnore + java \ + -XX:MaxPermSize=1g \ + -Xmx2g \ + -cp "$TOOLS_CLASSPATH:$1" \ + org.apache.spark.tools.GenerateMIMAIgnore } -# Generate Mima Ignore is called twice, first with latest built jars -# on the classpath and then again with previous version jars on the classpath. -# Because of a bug in GenerateMIMAIgnore that when old jars are ahead on classpath -# it did not process the new classes (which are in assembly jar). -generate_mima_ignore - -export SPARK_CLASSPATH="$(build/sbt "export oldDeps/fullClasspath" | tail -n1)" -echo "SPARK_CLASSPATH=$SPARK_CLASSPATH" - -generate_mima_ignore +SPARK_PROFILES="-Pyarn -Pspark-ganglia-lgpl -Pkinesis-asl -Phive-thriftserver -Phive" +generate_mima_ignore "$(build/sbt $SPARK_PROFILES "export assembly/fullClasspath" | tail -n1)" +generate_mima_ignore "$(build/sbt $SPARK_PROFILES "export oldDeps/fullClasspath" | tail -n1)" echo -e "q\n" | build/sbt mima-report-binary-issues | grep -v -e "info.*Resolving" ret_val=$? |