Skip to content

Commit

Permalink
gradle-home-cache-cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski committed Jan 21, 2024
1 parent e08869c commit 7234112
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
with:
build-root-directory: testproject
arguments: dependencies
gradle-home-cache-cleanup: true

- id: dependency-diff
if: github.event_name == 'pull_request'
Expand Down Expand Up @@ -84,6 +85,7 @@ jobs:
with:
build-root-directory: testproject
arguments: dependencies --no-configuration-cache
gradle-home-cache-cleanup: true

- id: dependency-diff
uses: ./
Expand Down Expand Up @@ -119,7 +121,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest]
os: [macos-latest, windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
name: Execute on ${{ matrix.os }} runner
steps:
Expand All @@ -139,6 +141,7 @@ jobs:
with:
build-root-directory: testproject
arguments: dependencies
gradle-home-cache-cleanup: true

- id: dependency-diff
uses: ./
Expand Down
5 changes: 2 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,13 @@ jobs:
All inputs with their default values:
```yml
- id: dependency-diff
name: Generate dependency diff
uses: usefulness/dependency-tree-diff-action@v1
with:
configuration: 'releaseRuntimeClasspath'
project: 'app'
build-root-directory: .
additional-gradle-arguments: ''
lib-version: '1.2.1'
lib-version: 'latest'
```
- **`configuration`** - Selected Gradle configuration, passed to `./gradlew dependencies --configuration xxx`.
Expand All @@ -81,7 +80,7 @@ Dependency diff for root projects can be configured using `project: ''`.
- **`build-root-directory`** - Relative path to folder containing gradle wrapper.
Example usage: `build-root-directory: library`
- **`additional-gradle-arguments`** - Additional arguments passed to internal Gradle invocation. Example: `"--no-configuration-cache"` or `"--stacktrace"`
- **`lib-version`** - Overrides [dependency-tree-diff](https://github.com/JakeWharton/dependency-tree-diff) dependency version
- **`lib-version`** - Overrides [dependency-tree-diff](https://github.com/JakeWharton/dependency-tree-diff) dependency version. Example: `"1.2.1"`, `"1.1.0"`, `"latest"`

<details><summary></summary>
<p>
Expand Down

0 comments on commit 7234112

Please sign in to comment.