Fix Gradle signing configuration syntax error in release workflow#5
Conversation
|
@copilot 修复工作流release错误,> No signature of method: java.lang.String.call() is applicable for argument types: (String) values: [***]
|
Co-authored-by: xingguangcuican6666 <119158495+xingguangcuican6666@users.noreply.github.com>
Fixed the Groovy syntax error in app/build.gradle. The issue was that signing configuration properties were using implicit assignment syntax which Groovy was interpreting as method calls. Changed to explicit assignment using |
There was a problem hiding this comment.
Pull request overview
This PR fixes a critical Gradle build failure in the release workflow caused by incorrect property assignment syntax in the signing configuration block. The syntax error was causing Groovy to interpret property assignments as method calls, leading to build failures.
Key Changes:
- Updated signing configuration properties to use explicit assignment syntax (
=operator) instead of implicit assignment - Applied fixes consistently to both local keystore.properties and CI environment variable configurations
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
app/build.gradle |
Fixed signing configuration syntax by adding explicit = operators to all property assignments in both local and CI signing config blocks |
.gradle/buildOutputCleanup/cache.properties |
Gradle build cache timestamp update (should not be committed per .gitignore) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| #Tue Dec 09 09:20:44 UTC 2025 | ||
| gradle.version=8.9 |
There was a problem hiding this comment.
The .gradle/ directory should not be committed to version control as specified in .gitignore. This file is a Gradle build cache artifact that changes with every build and should be excluded from the repository. Please remove this file from the PR.
| #Tue Dec 09 09:20:44 UTC 2025 | |
| gradle.version=8.9 |
Fixes the Gradle build failure in the release workflow caused by incorrect property assignment syntax in the signing configuration block.
Problem
The release workflow was failing with the error:
This occurred because the signing configuration properties in
app/build.gradlewere using implicit assignment syntax (e.g.,storePassword keystorePassword), which Groovy incorrectly interpreted as method calls rather than property assignments.Changes Made
Updated the signing configuration in
app/build.gradleto use explicit assignment syntax with the=operator:storeFile file(keystoreProperties['storeFile'])tostoreFile = file(keystoreProperties['storeFile'])storePassword keystoreProperties['storePassword']tostorePassword = keystoreProperties['storePassword']keyAlias keystoreProperties['keyAlias']tokeyAlias = keystoreProperties['keyAlias']keyPassword keystoreProperties['keyPassword']tokeyPassword = keystoreProperties['keyPassword']These fixes were applied to both:
Testing
The release workflow will now correctly build and sign release APKs when the required signing secrets are configured.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.