Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
[ID: 558956]
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
If I have a custom task computing a version name for the new
onVariants
API,versionNameSuffix
effectively becomes a no-op.I have a repro case in this project + branch:https://github.com/ZacSweers/CatchUp/tree/z/suffix
Runhttps://github.com/ZacSweers/CatchUp/blob/z/suffix/buildSrc/src/main/kotlin/dev/zacsweers/catchup/gradle/CatchUpPlugin.kt#L208
./gradlew :app:assembleRelease
and observe the final manifest does not have the-release
suffix that that branch adds a commit for. The project uses the new onVariants API for setting this here:The repro project uses versionNameSuffix on buildtype, but we've internally at slack observed this same bug when used on product flavors too.