
The highest tagged major version is
v6.
module
Version:
v1.3.1
Opens a new window with list of versions in this module.
Published: Jul 7, 2020
License: Apache-2.0
Opens a new window with license information.
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
¶
cmd
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.