android - Where to define gradle task so that it doesn't run with every build -


i have defined gradle task increments version code. thing is in app.gradle , runs every build. goal make run on demand our ci server.

just make task depends on special task. in case:

task incversioncode(dependson: ["assemblerelease"]) << {     // task code } 

you can use android gradle plugin auto increasing version code: https://github.com/moallemi/gradle-advanced-build-version/


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -