Skip to content

Commit

Permalink
Add an example of attaching gradle bindings
Browse files Browse the repository at this point in the history
This is based on the work added with paketo-buildpacks/gradle#60, so requires a version of the Gradle CNB with this feature.
  • Loading branch information
Daniel Mikusa committed Apr 13, 2021
1 parent 3209f92 commit c308d52
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions java/gradle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
pack build applications/gradle
```

Alternatively, if you want to attach a `gradle.properties` file to pass additional configuration to Gradle.

```bash
pack build --volume $(pwd)/bindings:/platform/bindings applications/gradle
```

## Running

```bash
Expand Down
2 changes: 2 additions & 0 deletions java/gradle/bindings/gradle/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# should make gradle just a bit more verbose
org.gradle.logging.level=info
1 change: 1 addition & 0 deletions java/gradle/bindings/gradle/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gradle

0 comments on commit c308d52

Please sign in to comment.