Skip to content

Commit a2d6926

Browse files
author
Daniel Mikusa
authored
Merge pull request #11 from paketo-buildpacks/license-info
Adds some missing license info & cleans up README
2 parents 97ae742 + 7aae244 commit a2d6926

File tree

3 files changed

+30
-9
lines changed

3 files changed

+30
-9
lines changed

NOTICE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
leiningen
1+
clojure-tools
22

33
Copyright (c) 2020-Present CloudFoundry.org Foundation, Inc. All Rights Reserved.
44

README.md

+25-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
# Paketo Buildpack for Clojure Tools
1+
# `gcr.io/paketo-buildpacks/clojure-tools`
22

33
The Paketo Clojure Tools Buildpack is a Cloud Native Buildpack that builds Clojure-based applications from source.
44

55
## Behavior
6+
67
This buildpack will participate all the following conditions are met
78

89
* `<APPLICATION_ROOT>/deps.edn` exists
@@ -18,11 +19,27 @@ The buildpack will do the following:
1819
* Expands `<APPLICATION_ROOT>/target/*.jar` to `<APPLICATION_ROOT>`
1920

2021
## Configuration
21-
| Environment Variable | Description
22-
| -------------------- | -----------
23-
| `$BP_CLJ_TOOLS_BUILD_ENABLED` | Configure the arguments to enable tools build.
24-
| `$BP_CLJ_TOOLS_BUILD_ARGUMENTS` | Configure the arguments to pass to build system. Defaults to `-T:build uber`.
25-
| `$BP_CLJ_DEPS_ARGUMENTS` | Configure the arguments to pass to build system. Defaults to `-X:uberjar`.
26-
| `$BP_CLJ_BUILT_MODULE` | Configure the module to find application artifact in. Defaults to the root module (empty).
27-
| `$BP_CLJ_BUILT_ARTIFACT` | Configure the built application artifact explicitly. Supersedes `$BP_CLJ_BUILT_MODULE` Defaults to `target/*.jar`.
2822

23+
| Environment Variable | Description |
24+
| ------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
25+
| `$BP_CLJ_TOOLS_BUILD_ENABLED` | Configure the arguments to enable tools build. |
26+
| `$BP_CLJ_TOOLS_BUILD_ARGUMENTS` | Configure the arguments to pass to build system. Defaults to `-T:build uber`. |
27+
| `$BP_CLJ_DEPS_ARGUMENTS` | Configure the arguments to pass to build system. Defaults to `-X:uberjar`. |
28+
| `$BP_CLJ_BUILT_MODULE` | Configure the module to find application artifact in. Defaults to the root module (empty). |
29+
| `$BP_CLJ_BUILT_ARTIFACT` | Configure the built application artifact explicitly. Supersedes `$BP_CLJ_BUILT_MODULE` Defaults to `target/*.jar`. |
30+
31+
## Bindings
32+
33+
The buildpack optionally accepts the following bindings:
34+
35+
### Type: `dependency-mapping`
36+
37+
| Key | Value | Description |
38+
| --------------------- | ------- | ------------------------------------------------------------------------------------------------- |
39+
| `<dependency-digest>` | `<uri>` | If needed, the buildpack will fetch the dependency with digest `<dependency-digest>` from `<uri>` |
40+
41+
## License
42+
43+
This buildpack is released under version 2.0 of the [Apache License][a].
44+
45+
[a]: http://www.apache.org/licenses/LICENSE-2.0

buildpack.toml

+4
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ uri = "https://download.clojure.org/install/linux-install-1.10.3.943.sh"
7272
sha256 = "f1fdb786fa8b9ef3a08d0b331a51861cd5a6eea277e93bbad64bf37774df17c6"
7373
stacks = [ "io.buildpacks.stacks.bionic", "io.paketo.stacks.tiny", "org.cloudfoundry.stacks.cflinuxfs3" ]
7474

75+
[[metadata.dependencies.licenses]]
76+
type = "Eclipse Public License - v 1.0"
77+
uri = "https://github.com/clojure/clojure/blob/master/epl-v10.html"
78+
7579
[metadata]
7680
pre-package = "scripts/build.sh"
7781
include-files = [

0 commit comments

Comments
 (0)