Skip to content

Commit e49fb1b

Browse files
author
Daniel Mikusa
authored
Merge pull request #61 from paketo-buildpacks/readme
Update docs for libbs changes
2 parents ee1e2bc + 2ad2eec commit e49fb1b

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

README.md

+11-8
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,20 @@ The buildpack will do the following:
1616
* Contributes Clojure Tools to a layer with all commands on `$PATH`
1717
* Runs `<CLOJURE_TOOLS_ROOT>/clojure -X:uberjar` to build the application
1818
* Removes the source code in `<APPLICATION_ROOT>`
19-
* Expands `<APPLICATION_ROOT>/target/*.jar` to `<APPLICATION_ROOT>`
19+
* If `$BP_CLJ_BUILT_ARTIFACT` matched a single file
20+
* Restores `$BP_CLJ_BUILT_ARTIFACT` from the layer, expands the single file to `<APPLICATION_ROOT>`
21+
* If `$BP_CLJ_BUILT_ARTIFACT` matched a directory or multiple files
22+
* Restores the files matched by `$BP_CLJ_BUILT_ARTIFACT` to `<APPLICATION_ROOT>`
2023

2124
## Configuration
2225

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`. |
26+
| Environment Variable | Description |
27+
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
28+
| `$BP_CLJ_TOOLS_BUILD_ENABLED` | Configure the arguments to enable tools build. |
29+
| `$BP_CLJ_TOOLS_BUILD_ARGUMENTS` | Configure the arguments to pass to build system. Defaults to `-T:build uber`. |
30+
| `$BP_CLJ_DEPS_ARGUMENTS` | Configure the arguments to pass to build system. Defaults to `-X:uberjar`. |
31+
| `$BP_CLJ_BUILT_MODULE` | Configure the module to find application artifact in. Defaults to the root module (empty). |
32+
| `$BP_CLJ_BUILT_ARTIFACT` | Configure the built application artifact explicitly. Supersedes `$BP_CLJ_BUILT_MODULE`. Defaults to `target/*.jar`. Can match a single file, multiple files or a directory. Can be one or more space separated patterns. |
3033

3134
## Bindings
3235

0 commit comments

Comments
 (0)