sbt

module
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2020 License: Apache-2.0

README

gcr.io/paketo-buildpacks/sbt

The Paketo SBT Buildpack is a Cloud Native Buildpack that builds SBT-based applications from source.

Behavior

This buildpack will participate all the following conditions are met

  • <APPLICATION_ROOT>/build.sbt exists

The buildpack will do the following:

  • Requests that a JDK be installed
  • Links the ~/.sbt to a layer for caching
  • If <APPLICATION_ROOT>/sbt exists
    • Runs <APPLICATION_ROOT>/sbt universal:packageBin to build the application
  • If <APPLICATION_ROOT>/sbt does not exist
    • Contributes SBT to a layer with all commands on $PATH
    • Runs <SBT_ROOT>/bin/sbt package to build the application
  • Removes the source code in <APPLICATION_ROOT>
  • Expands <APPLICATION_ROOT>/target/universal/*.zip to <APPLICATION_ROOT>

Configuration

Environment Variable Description
$BP_SBT_BUILD_ARGUMENTS Configure the arguments to pass to build system. Defaults to universal:packageBin.
$BP_SBT_BUILT_MODULE Configure the module to find application artifact in. Defaults to the root module (empty).
$BP_SBT_BUILT_ARTIFACT Configure the built application artifact explicitly. Supersedes $BP_SBT_BUILT_MODULE Defaults to target/universal/*.zip.

License

This buildpack is released under version 2.0 of the Apache License.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL