Skip to content

Scalingo/clojure-buildpack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

435 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scalingo Clojure Buildpack

This is the Scalingo buildpack for apps that use Leiningen as their build tool. It's primarily used to build Clojure applications.

If you're using a different JVM build tool, use the appropriate buildpack:

Table of Contents

Supported Leiningen Versions

This buildpack officially supports Leiningen 2.x. Leiningen 1.x is no longer supported

Application Requirements

Your app requires a project.clj file in the root directory with :min-lein-version "2.0.0" or higher. It's recommended to also configure :uberjar-name in your project.clj.

The buildpack will detect your app as Clojure if it has a project.clj file in the root. If you use the clojure-maven-plugin, the standard Java buildpack should work instead.

Configuration

OpenJDK Version

Specify an OpenJDK version by creating a system.properties file in the root of your project directory and setting the java.runtime.version property. See the Java Support article for available versions and configuration instructions.

Leiningen Version

The buildpack uses Leiningen 2.12.0 by default for projects that specify :min-lein-version "2.0.0" or higher in their project.clj.

To use a specific Leiningen version, you can include a bin/lein script in your repository. The buildpack will detect and use this script instead of the default Leiningen installation.

Buildpack Configuration

Configure the buildpack by setting environment variables:

Environment Variable Description Default
LEIN_BUILD_TASK Leiningen task to execute uberjar (if :uberjar-name is set) or with-profile production compile :all
LEIN_INCLUDE_IN_SLUG Include Leiningen in the slug for runtime use no
CLOJURE_CLI_VERSION Clojure CLI tools version 1.12.4.1597

You can also override the default build behavior by including a bin/build script in your repository. The buildpack will execute this script instead of the default build command.

Documentation

For more information about using Clojure on Scalingo, see our documentation.

About

Clojure buildpack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 87.9%
  • Makefile 6.3%
  • Clojure 5.8%