firebase / firebase-android-sdk

Firebase Android SDK
https://firebase.google.com
Apache License 2.0
2.28k stars 578 forks source link

The Gradle AppDistributionPlugin should not eagerly create its tasks #6518

Open bmuschko opened 3 hours ago

bmuschko commented 3 hours ago

[REQUIRED] Step 2: Describe your environment

[REQUIRED] Step 3: Describe the problem

Using the TaskContainer.create method to create a task will spend unnecessary time when running a Gradle build. You should use the TaskContainer.register method. For more information, see the Gradle documentation.

Steps to reproduce:

Simply apply and configure the plugin. Any UploadDistributionTask, AddTestersTask, and RemoveTestersTask tasks will be created and configured during Gradle's configuration phase.

BTW: Where do I find the source code of the Gradle plugin? It doesn't seem to live in this repository.

google-oss-bot commented 3 hours ago

I found a few problems with this issue: