From 6a656a1491cd2ac6a626645c6364d5e36a603a9f Mon Sep 17 00:00:00 2001 From: Krzysztof Magiera Date: Fri, 6 Nov 2015 00:21:40 -0800 Subject: [PATCH] Speedup gradle builds by setting explicit deps on prepareBoost task. Differential Revision: D2625574 fb-gh-sync-id: db0887e184a6d098699c9f84a2c3cb0d3b7e7b0f --- ReactAndroid/build.gradle | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/ReactAndroid/build.gradle b/ReactAndroid/build.gradle index 5c947bdc24b810..cee11c8adafcf0 100644 --- a/ReactAndroid/build.gradle +++ b/ReactAndroid/build.gradle @@ -29,11 +29,17 @@ task downloadBoost(dependsOn: createNativeDepsDirectories, type: Download) { dest new File(downloadsDir, 'boost_1_57_0.zip') } -task prepareBoost(dependsOn: downloadBoost, type: Copy) { - from zipTree(downloadBoost.dest) - from 'src/main/jni/third-party/boost/Android.mk' - include 'boost_1_57_0/boost/**/*.hpp', 'Android.mk' - into "$thirdPartyNdkDir/boost" +task prepareBoost(dependsOn: downloadBoost) { + inputs.files downloadBoost.dest, 'src/main/jni/third-party/boost/Android.mk' + outputs.dir "$thirdPartyNdkDir/boost" + doLast { + copy { + from { zipTree(downloadBoost.dest) } + from 'src/main/jni/third-party/boost/Android.mk' + include 'boost_1_57_0/boost/**/*.hpp', 'Android.mk' + into "$thirdPartyNdkDir/boost" + } + } } task downloadDoubleConversion(dependsOn: createNativeDepsDirectories, type: Download) {