Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3883A11BC9 for ; Thu, 28 Aug 2014 19:03:26 +0000 (UTC) Received: (qmail 68069 invoked by uid 500); 28 Aug 2014 19:03:17 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 67997 invoked by uid 500); 28 Aug 2014 19:03:17 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 67233 invoked by uid 99); 28 Aug 2014 19:03:16 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2014 19:03:16 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 85F4682C2AB; Thu, 28 Aug 2014 19:03:16 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: naika@apache.org To: commits@cordova.apache.org Date: Thu, 28 Aug 2014 19:03:43 -0000 Message-Id: <5447d144ccad4210a258d9acb8144390@git.apache.org> In-Reply-To: <929b15d98faa4ef5a1db60a7efa6f27e@git.apache.org> References: <929b15d98faa4ef5a1db60a7efa6f27e@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [29/50] git commit: CB-3445 Speed up gradle building (incremental builds go from 10s -> 1.5s for me) CB-3445 Speed up gradle building (incremental builds go from 10s -> 1.5s for me) Biggest win is disabling the linter. Project: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/commit/c3eda01f Tree: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/tree/c3eda01f Diff: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/diff/c3eda01f Branch: refs/heads/master Commit: c3eda01f56f58a8a567057ad9175496657d413a1 Parents: db0847e Author: Andrew Grieve Authored: Mon Aug 18 14:16:27 2014 -0400 Committer: Archana Naik Committed: Mon Aug 18 12:40:58 2014 -0700 ---------------------------------------------------------------------- bin/templates/cordova/lib/build.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/c3eda01f/bin/templates/cordova/lib/build.js ---------------------------------------------------------------------- diff --git a/bin/templates/cordova/lib/build.js b/bin/templates/cordova/lib/build.js index 3d0ae87..1f0cd23 100644 --- a/bin/templates/cordova/lib/build.js +++ b/bin/templates/cordova/lib/build.js @@ -102,7 +102,22 @@ module.exports.builders = { }, gradle: { getArgs: function(cmd) { + var lintSteps = [ + 'lint', + 'lintVitalRelease', + 'compileLint', + 'copyReleaseLint', + 'copyDebugLint' + ]; var args = [cmd, '-b', path.join(ROOT, 'build.gradle')]; + // 10 seconds -> 6 seconds + args.push('-Dorg.gradle.daemon=true'); + // Excluding lint: 6s-> 1.6s + for (var i = 0; i < lintSteps.length; ++i) { + args.push('-x', lintSteps[i]); + } + // Shaves another 100ms, but produces a "try at own risk" warning. Not worth it (yet): + // args.push('-Dorg.gradle.parallel=true'); return args; },