Skip to content

CI: detect Gradle version and use setup-gradle action for release#33

Merged
Idddd merged 1 commit into
mainfrom
codex/fix-project-release-failure
Jun 3, 2026
Merged

CI: detect Gradle version and use setup-gradle action for release#33
Idddd merged 1 commit into
mainfrom
codex/fix-project-release-failure

Conversation

@Idddd
Copy link
Copy Markdown
Collaborator

@Idddd Idddd commented Jun 3, 2026

Motivation

  • Ensure the workflow uses the project-specified Gradle version when installing Gradle in the runner so release tasks run with the expected Gradle runtime.

Description

  • Add a Read Gradle version step that parses gradle/wrapper/gradle-wrapper.properties to extract the Gradle version and exposes it as an output.
  • Pass the parsed version to gradle/actions/setup-gradle@v4 via the gradle-version input to install the matching Gradle distribution.
  • Replace invocation of ./gradlew release with gradle release so the action-provided Gradle binary is used, and emit an error if the wrapper file cannot be parsed.

Testing

  • No automated tests were run as part of this change.

Codex Task

@Idddd Idddd merged commit 6a73529 into main Jun 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant