CSC 347 - Concepts of Programming Languages

Assignment Build Tools

Instructor: Stefan Mitsch

Tools for Scala Assignments

Scala builds on top of the JVM; we need a Java SDK and a Scala Build System

  • Java SDK
  • SBT Scala build system

Install Java SDK

  • Install Java 8 SDK or Java 11 SDK
    • Download and install either Java 8 or Java 11.
    • Confirm correct version of java and javac, see in your PATH environment variable (see worksheet).

SBT

  • SBT is a popular build automation system for Scala
  • SBT compiles and invokes tests on Java/Scala code
  • Download and extract SBT
  • Add absolute path containing sbt/bin to PATH (see worksheet Java and C for information on PATH)
  • Download and extract the assignments archive
  • Change into the extract assignments directory
  • Use dir or ls to check build.sbt is in current directory
  • Run: sbt