android icon indicating copy to clipboard operation
android copied to clipboard

Gradle clean task executes not needed steps

Open Fatme opened this issue 6 years ago • 0 comments

Environment

  • CLI: 5.3.2
  • Cross-platform modules:
  • Android Runtime: 5.3.1
  • iOS Runtime (if applicable):
  • Plugin(s):

Describe the bug

Gradle clean...
         + setting applicationId
         + applying user-defined configuration from /Users/myUser/Work/nativescript-cli/scratch/buildProject/app/App_Resources/Android/app.gradle
         + using support library version 28.0.0
         + adding nativescript runtime package dependency: nativescript-optimized-with-inspector
         + adding aar plugin dependency: /Users/myUser/Work/nativescript-cli/scratch/buildProject/node_modules/tns-core-modules-widgets/platforms/android/widgets-release.aar
Gradle build...
         + setting applicationId
         + applying user-defined configuration from /Users/myUser/Work/nativescript-cli/scratch/buildProject/app/App_Resources/Android/app.gradle
         + using support library version 28.0.0
         + adding nativescript runtime package dependency: nativescript-optimized-with-inspector
         + adding aar plugin dependency: /Users/myUser/Work/nativescript-cli/scratch/buildProject/node_modules/tns-core-modules-widgets/platforms/android/widgets-release.aar

As you can see from the above log, the output from Gradle clean... and Gradle build... is the same. Most probably we don't need to execute build task's logic when cleaning the project.

To Reproduce tns build android --bundle --clean

Fatme avatar Apr 19 '19 11:04 Fatme