Breaking changes:
Path-related inputs have been reworked to make them more intuitive and avoid using deprecated Gradle features.
In a nutshell:
build_root_directory
: new inputgradle_file
input: removed, usebuild_root_directory
insteadgradlew_path
input: defaults to./gradlew
Background: previously, the step did not change the working directory when calling gradle
or gradlew
. If the Gradle project and the Gradle Wrapper file was in a different (sub)directory, the gradlew_file
step input could be defined. This used Gradle鈥檚 --build-file
flag, which has been deprecated in Gradle 8 and completely removed in Gradle 9. Starting with this release, the step has a new build_root_directory
input and changes the working directory when calling Gradle.
Migration
If Gradle project is at android
subdirectory:
workflow:
test:
steps:
- gradle-runner:
inputs:
- - gradle_file: ./android/build.gradle
- - gradlew_path: ./android/gradlew
+ - build_root_directory: ./android
# Assuming Gradle Wrapper is at ./android/gradlew
What鈥檚 Changed
- Remove --build-file flag, introduce build root dir input by @ofalvai in Remove --build-file flag, introduce build root dir input by ofalvai 路 Pull Request #112 路 bitrise-steplib/steps-gradle-runner 路 GitHub
- Make
gradlew_path
input default to./gradlew
by @ofalvai in Make `gradlew_path` input default to `./gradlew` by ofalvai 路 Pull Request #113 路 bitrise-steplib/steps-gradle-runner 路 GitHub
Full Changelog: Comparing 3.0.0...4.0.0 路 bitrise-steplib/steps-gradle-runner 路 GitHub