Skip to main content

Scala

This guide will help build Scala projects on Semaphore.

Overview

The Scala toolchain is pre-installed in Linux machines. You can switch the active compiler using sem-version.

How to switch Scala versions

Use sem-version to switch between Scala versions. This only works on Linux machines.

checkout
sem-version scala 2.12
scala hello.scala

See artifacts to learn how to save and persist the built binary.

Semaphore does not provide prebuilt Scala images for Docker Environments. Find Dockerfiles to build your custom images in the semaphoreci/docker-images repository.