Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clojure Buildpack #587

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@
[submodule "buildpacks/gradle/test-apps/heroku-gradle-getting-started"]
path = buildpacks/gradle/test-apps/heroku-gradle-getting-started
url = https://github.com/heroku/gradle-getting-started.git

[submodule "buildpacks/leiningen/test-apps/heroku-clojure-getting-started"]
path = buildpacks/leiningen/test-apps/heroku-clojure-getting-started
url = https://github.com/heroku/clojure-getting-started.git
19 changes: 19 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ members = [
"buildpacks/gradle",
"buildpacks/jvm",
"buildpacks/jvm-function-invoker",
"buildpacks/leiningen",
"buildpacks/maven",
"buildpacks/sbt",
"shared",
Expand Down
10 changes: 10 additions & 0 deletions buildpacks/leiningen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

* Initial release
23 changes: 23 additions & 0 deletions buildpacks/leiningen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[package]
name = "leiningen"
version.workspace = true
rust-version.workspace = true
edition.workspace = true
publish.workspace = true

[dependencies]
libcnb.workspace = true
libherokubuildpack.workspace = true
indoc = "2"
java-properties = "2"
serde = { version = "1", features = ["derive"] }
tempfile = "3"
thiserror = "1"
semver = { version = "1", features = ["serde"] }
shell-words = "1"
buildpacks-jvm-shared.workspace = true

[dev-dependencies]
libcnb-test.workspace = true
buildpacks-jvm-shared-test.workspace = true
ureq = "2"
20 changes: 20 additions & 0 deletions buildpacks/leiningen/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Heroku Cloud Native Leiningen Buildpack
[![CI](https://github.com/heroku/buildpacks-jvm/actions/workflows/ci.yml/badge.svg)](https://github.com/heroku/buildpacks-jvm/actions/workflows/ci.yml)

Heroku's official Cloud Native Buildpack for [Leiningen](https://leiningen.org/) usage in [Clojure](https://clojure.org/) applications.

## Build Plan

### Requires

* `jdk`: To compile Java sources a JDK is required. It can be provided by the `heroku/jvm` ([Source](/buildpacks/jvm),
[Readme](/buildpacks/jvm/README.md)) buildpack.
* `jvm-application`: This is not a strict requirement of the buildpack. Requiring `jvm-application` ensures that this
buildpack can be used even when no other buildpack requires `jvm-application`.

### Provides

* `jvm-application`: Allows other buildpacks to depend on a compiled JVM application.

## License
See [LICENSE](../../LICENSE) file.
21 changes: 21 additions & 0 deletions buildpacks/leiningen/buildpack.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
api = "0.9"

[buildpack]
id = "heroku/leiningen"
version = "3.2.0"
name = "Leiningen"
clear-env = true
homepage = "https://github.com/heroku/buildpacks-jvm"
description = "Official Heroku buildpack for leiningen applications."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updating the Docker Hub descriptions reminded me of this - we'll need to update the descriptions/keywords etc here to use the new style introduced in #603.

keywords = ["java", "clojure", "leiningen"]

[[buildpack.licenses]]
type = "BSD-3-Clause"

[[stacks]]
id = "*"

[metadata]
[metadata.release]
[metadata.release.image]
repository = "docker.io/heroku/buildpack-leiningen"
Loading