Update samples/compile.sh to adopt version scheme
@@ -16,7 +16,8 @@ MAIN_CLASS=$2
TOPDIR=$(dirname $(realpath $0))
PARENTDIR=$TOPDIR/..
-CLASSPATH=$PARENTDIR/tooling/build/libs/tooling.jar:$PARENTDIR/rt/build/libs/scoreapi.jar
+VERSION=$(grep "^VERSION=" $PARENTDIR/gradle.properties | cut -d= -f2)
+CLASSPATH=$PARENTDIR/tooling/build/libs/tooling-$VERSION.jar:$PARENTDIR/api/build/libs/api-$VERSION.jar
# Determine the Java command to use to start the JVM
if [[ -n "$JAVA_HOME" ]] && [[ -x "$JAVA_HOME/bin/javac" ]]; then
