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

testing - Detect whether test has failed within fixture -

Android: SharingActionView on swipe from bottom -

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -