Unverified Commit 5423935c authored by Daz DeBoer's avatar Daz DeBoer
Browse files

Deprecate the 'wrapper-directory' input and recommend 'gradle-executable' instead

Use of a wrapper in a non-standard directory is uncommon, and is effectively handled
by referencing the `gradlew` script as the `gradle-executable`.
parent 41ca2299
Loading
Loading
Loading
Loading
+6 −6
Changes for .github/workflows/prod.yml: 6 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -22,12 +22,6 @@ jobs:
      with:
        build-root-directory: __tests__/samples/basic
        arguments: test
    - name: Test custom wrapper location
      uses: ./
      with:
        build-root-directory: __tests__/samples/no-wrapper
        wrapper-directory: __tests__/samples/basic
        arguments: help
    - name: Test use defined Gradle version
      uses: ./
      with:
@@ -46,6 +40,12 @@ jobs:
        gradle-executable: __tests__/samples/basic/gradlew${{ matrix.script-suffix }}
        build-root-directory: __tests__/samples/no-wrapper
        arguments: help
    - name: Test custom wrapper location (deprecated)
      uses: ./
      with:
        build-root-directory: __tests__/samples/no-wrapper
        wrapper-directory: __tests__/samples/basic
        arguments: help

  failures: # These build invocations are informational only, and are expected to fail
    runs-on: ubuntu-latest
+6 −4
Changes for README.md: 6 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -60,22 +60,24 @@ If you need to pass environment variables, simply use the GitHub Actions workflo
    build-root-directory: some/subdirectory
```

## Use a Gradle wrapper from a different directory
## Use a specific `gradle` executable

```yaml
 - uses: eskatos/gradle-command-action@v1
   with:
     wrapper-directory: path/to/wrapper-directory
     gradle-executable: path/to/gradle
```

## Use a specific `gradle` executable
## Use a Gradle wrapper from a different directory
 
```yaml
 - uses: eskatos/gradle-command-action@v1
   with:
     gradle-executable: path/to/gradle
     gradle-executable: path/to/gradlew
 ```

 NOTE: The `wrapper-directory` input has been deprecated. Use `gradle-executable` instead.

## Setup and use a declared Gradle version

```yaml
+1
Changes for action.yml: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ inputs:
  wrapper-directory:
    description: Path to the Gradle Wrapper directory
    required: false
    deprecationMessage: Use 'gradle-executable' to point to a gradlew[.bat] file in a non-default location
  gradle-executable:
    description: Path to the Gradle executable
    required: false