I have been working on an android app and recently set up Jenkins on Google Cloud (Ubuntu 16.04) to make builds. When I run gradlew tasks on my local machine(Mac) it shows a lot more tasks than what I see when I run the same command on the Ubuntu instance.
For eg:-
On My local machine it shows :-
Android tasks
androidDependencies - Displays the Android dependencies of the project.
signingReport - Displays the signing info for the base and test modules
sourceSets - Prints out all the source sets defined in this project.
whereas on my Ubuntu instance I just see the below : -
Android tasks
sourceSets - Prints out all the source sets defined in this project.`
Also running gradlew assemble from the Ubuntu instance says: -
> Task :app:assemble UP-TO-DATE Task :app:assemble in app Starting Skipping task ':app:assemble' as it has no actions. Task :app:assemble in app Finished :app:assemble (Thread[Daemon worker Thread 24,5,main]) completed. Took 0.009 secs
whereas it builds fine on my local machine.
I find this to be a strange choice but “gradle tasks” will only show tasks where “group” is not null. Tasks where “group” is null are considered “hidden”. I think that you can do something like “gradle tasks --all” or similar to show “hidden” tasks
gradlew tasks --all gives the same results. I do not understand why the same codebase would yield different tasks between my local machine and the Ubuntu instance.
For example for the group “Android tasks”, my local machine shows:-
androidDependencies - Displays the Android dependencies of the project.
signingReport - Displays the signing info for the base and test modules
sourceSets - Prints out all the source sets defined in this project.
while for the same group, the ubunut instance shows : -
sourceSets - Prints out all the source sets defined in this project.`
Ah sorry… I didn’t fully read your question before answering. I’m guessing there’s a reason that the tasks weren’t added to the Gradle model on your Ubuntu box. Have you installed android studio or the android sdk?
For questions related to the android plugin you are best to go ask your questions on the android forums.