Last active
January 12, 2018 12:45
-
-
Save ziglee/23606a2beff3443757703fb0207fdad8 to your computer and use it in GitHub Desktop.
Disable android build chache in gradle properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File propsFile = new File('./gradle.properties') | |
if (!propsFile.exists()) { | |
propsFile.withWriterAppend { w -> w << 'android.enableBuildCache = false' } | |
} else { | |
Properties props = new Properties() | |
props.load(propsFile.newDataInputStream()) | |
props.setProperty('android.enableBuildCache', 'false') | |
props.store(propsFile.newWriter(), null) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment