From a62e5672628c5daca0763e6bc2f949c082bb0d62 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 2 Oct 2017 21:58:01 +0300 Subject: gradle: prevent compileFrontend task execution when no changes in files --- juick-www/build.gradle | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'juick-www') diff --git a/juick-www/build.gradle b/juick-www/build.gradle index 83902b8a..91d48c80 100644 --- a/juick-www/build.gradle +++ b/juick-www/build.gradle @@ -6,10 +6,15 @@ buildscript { } plugins { - id "com.moowork.node" version "1.1.0" + id "com.moowork.node" version "1.2.0" } task compileFrontend(type: NpmTask) { + inputs.files(fileTree('node_modules')) + inputs.files(fileTree('src')) + inputs.file('package.json') + inputs.file('webpack.config.js') + outputs.dir('src/main/resources') args = ['run', 'compile'] } -- cgit v1.2.3