Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publishBundle task doesn't support gradle configuration cache. #1008

Closed
ribafish opened this issue Sep 17, 2021 · 1 comment
Closed

publishBundle task doesn't support gradle configuration cache. #1008

ribafish opened this issue Sep 17, 2021 · 1 comment
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@ribafish
Copy link

ribafish commented Sep 17, 2021

Describe the bug

When

How To Reproduce

Run ./gradlew publishBundle with gradle configuration cache turned on.

Versions

  • Gradle Play Publisher: 3.6.0
  • Gradle Wrapper: 7.2
  • Android Gradle Plugin: 7.0.2

Tasks executed

./gradlew publishBundle

Expected behavior

The execution to not fail, even with gradle configuration cache turned on.

Additional context (if a crash, provide stack trace)

> Task :target:mobile:app:publishBundle

> Task :commitEditForNetDotGlobalid
Committing changes

FAILURE: Build failed with an exception.

* What went wrong:
Configuration cache problems found in this build.

3 problems were found storing the configuration cache.
- Task `:commitEditForNetDotGlobalid` of type `com.github.triplet.gradle.play.tasks.CommitEdit`: invocation of 'Task.project' at execution time is unsupported.
  See https://docs.gradle.org/7.2/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution
- Task `:target:mobile:app:collectCurrentProdReleaseDependencies` of type `com.android.build.gradle.internal.tasks.PerModuleReportDependenciesTask`: invocation of 'Task.project' at execution time is unsupported.
  See https://docs.gradle.org/7.2/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution
- Task `:target:mobile:app:publishCurrentProdReleaseBundle` of type `com.github.triplet.gradle.play.tasks.PublishBundle`: value 'provider(?)' failed to unpack provider

See the complete report at file:///var/lib/****/workspace/Android_master/build/reports/configuration-cache/50jlb4fj9wqc0kniiuiy8drf0/cfmajb8dtzu98y2m5bob7r1ok/configuration-cache-report.html
> Querying the mapped value of property(org.gradle.api.file.RegularFile, property(org.gradle.api.file.RegularFile, property(org.gradle.api.file.RegularFile, map(org.gradle.api.file.RegularFile flatmap(provider(task 'signCurrentProdReleaseBundle', class com.android.build.gradle.internal.tasks.FinalizeBundleTask)) check-type())))) before task ':target:mobile:app:signCurrentProdReleaseBundle' has completed is not supported
> Invocation of 'Task.project' by task ':target:mobile:app:collectCurrentProdReleaseDependencies' at execution time is unsupported.
> Invocation of 'Task.project' by task ':commitEditForNetDotExample' at execution time is unsupported.
@ribafish ribafish added the bug Indicates an unexpected problem or unintended behavior label Sep 17, 2021
@ribafish ribafish changed the title commitEdit task doesn't support gradle configuration cache. publishBundle task doesn't support gradle configuration cache. Sep 17, 2021
@SUPERCILEX
Copy link
Collaborator

SUPERCILEX commented Sep 18, 2021

Thanks for the heads up, closing in favor of #854.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants