heroku-buildpack-scala

by heroku

README.md

Heroku Buildpack: Scala (sbt)

CI

This is the official Heroku buildpack for apps that use sbt as their build tool. It's primarily used to build Scala applications, but it can also build applications written in other JVM languages (such as Play Framework apps written in Java).

If you're building a Scala app with Maven or Gradle, use the Java buildpack or Gradle buildpack instead.

Supported sbt Versions

This buildpack officially supports sbt 1.x. Best-effort support is available for apps using sbt 0.13.18. sbt 2.x support will be added after its release.

Getting Started

See the Getting Started on Heroku with Scala tutorial.

Application Requirements

Your app requires at least one .sbt file and a project/build.properties file in the root directory. The project/build.properties file must define the sbt.version property.

The buildpack uses the stage sbt task to build your application. The easiest way to provide this task is with sbt-native-packager, which includes it by default.

Configuration

OpenJDK Version

Specify an OpenJDK version rather than using the buildpack default. See the Java Support article for available versions and configuration instructions.

Documentation

For more information about using Scala on Heroku, see the Scala Support documentation on Dev Center.

CLI Installation

For new applications:

$ heroku create --buildpack https://github.com/heroku/heroku-buildpack-scala.git

For existing applications:

$ heroku buildpacks:set https://github.com/heroku/heroku-buildpack-scala.git -a YOUR_APP_NAME