android
android copied to clipboard
Gradle clean task executes not needed steps
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