aboyett / sbt-buildpack

Heroku Cloud Native Buildpack for Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Heroku Cloud Native Buildpack for Java

Build Status GitHub release

This is a work in progress (WIP) Heroku Cloud Native Buildpack for Java apps. It uses Maven to build your application and OpenJDK to run it. However, the JDK version can be configured as described below.

How it works

The buildpack will detect your app as Java if it has a pom.xml file, or one of the other POM formats supports by the Maven Polyglot plugin, in its root directory. It will use Maven to execute the build defined by your pom.xml and download your dependencies. The .m2 folder (local maven repository) will be cached between builds for faster dependency resolution, but neither the mvn executable or the .m2 folder will be available in the runtime image.

Usage

To use this buildpack with pack CLI run the following commands:

$ pack build image:tag --builder=heroku/buildpacks

Customizing

This buildpack supports the following environment variables for customization:

  • MAVEN_CUSTOM_GOALS
  • MAVEN_CUSTOM_OPTS
  • MAVEN_SETTINGS_PATH
  • MAVEN_SETTINGS_URL

You can select the JDK vendor and version using a system.properties file as described in the Heroku documentation on Java.

Development

Run the unit tests (no Internet required):

$ go test ./...

Run the integration tests (Internet required):

$ make test

Licence

MIT

About

Heroku Cloud Native Buildpack for Java

License:MIT License


Languages

Language:Go 84.1%Language:Shell 14.3%Language:Makefile 1.6%