Gradle Runner v4.0.0

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 input
  • gradle_file input: removed, use build_root_directory instead
  • gradlew_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

Full Changelog: Comparing 3.0.0...4.0.0 路 bitrise-steplib/steps-gradle-runner 路 GitHub