Skip to content

How To Build using Apache's Ant

Spark 4.3.0, Scala 2.13, Java 17+ (build.xml). Ant compiles against the jars of your Spark installation (SPARK_HOME, default ~/spark-4.3.0) and downloads the Scala 2.13 compiler and two jars from Maven Central:

scripts/build_with_ant.sh             # ant test: compile, build the jar, run the tests
scripts/build_with_ant.sh build_jar   # without the tests

Output: dist/data_algorithms_book.jar and dist/lib/ (the jars that are not in Spark). See Running the programs.

Data Algorithms Book