Giter VIP home page Giter VIP logo

heroku-buildpack-oracle-java's Introduction

Heroku buildpack: Oracle JDK

This is a Heroku buildpack for Java applications that use Maven as build tool. The buildpack installs Oracle JDK 1.8.0_25 and Maven 3.2.3 by default. The buildpack can also be configured to install JCE Unlimited Strength policy files and Ruby gems. If the application has NewRelic plugin installed, the buildpack will install NewRelic java agent automatically and enable it.

Oracle License Agreement
By using this buildpack you must agree the Oracle Binary Code License Agreement for the Java SE Platform Products and JavaFX.
http://www.oracle.com/technetwork/java/javase/terms/license/index.html

Usage

$ ls
Procfile  pom.xml  src

$ heroku apps:create example --buildpack https://github.com/trautonen/heroku-buildpack-oracle-java

$ git push heroku master
...
-----> Fetching custom git buildpack... done
-----> Java app detected
-----> Installing wget... version 1.15 installed
-----> Installing JDK... (downloading...) version 1.8.0_25 installed
-----> Installing Maven... version 3.2.3 installed
-----> Installing NewRelic agent... done
-----> Executing build...
       mvn -B -Duser.home=/tmp/build_2be971b4-90c0-48d4-8045-8ef1b5521352 -Dmaven.repo.local=/app/tmp/cache/.m2/repository -DskipTests=true -U clean install

The buildpack will detect pom.xml in the project root folder and executes maven with clean and install goals to create the executable.

Configuration

Different features of the buildpack can be configured with Heroku config vars. Config vars can be set using the Heroku CLI:

$ heroku config:set VAR="value"
  • JCE: JCE Unlimited Strength
    JCE="true" will download and apply the JCE Unlimited Strength policy files
  • GEMS: Ruby gems
    GEMS="sass compass" will install sass and compass Ruby gems
    (gems are only available at slug compilation time)

License

Licensed under the MIT License. See LICENSE.MIT file.

heroku-buildpack-oracle-java's People

Contributors

trautonen avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.