Last active
April 13, 2021 14:27
-
-
Save maxirosson/23b3c9ed3faa5f677f9ac77d8c23c89a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| def tasksToNotCache = [ | |
| "compile.*JavaWithJavac", | |
| "compile.*LibraryResources", | |
| "package.*Resources", | |
| "strip.*DebugSymbols", | |
| "mergeDebugAndroidTestNativeLibs", | |
| "generateDebugRFile", | |
| "dataBindingMergeDependencyArtifacts.*", | |
| "dataBindingMergeGenClasses.*", | |
| "bundleLibRuntimeToJarDebug", | |
| "bundleLibCompileToJarDebug", | |
| "parse.*LocalResources" | |
| ] | |
| allprojects { | |
| afterEvaluate { | |
| tasks.matching { | |
| task -> tasksToNotCache.any { task.name ==~ it } | |
| }.configureEach { | |
| outputs.cacheIf { false } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment