From 5528ef39350c7a950ac41a0c65da7e1e438dbfe6 Mon Sep 17 00:00:00 2001 From: Ilya Matveev Date: Fri, 13 Apr 2018 19:43:48 +0700 Subject: [PATCH] Fix issue with GRADLE_METADATA When the GRADLE_METADATA feature is enabled (e.g. by applying the 'cpp-application' plugin), a build fails to resolve the Node distribution as a dependency. This patch fixes this issue using explicitly specified metadata sources. See details: https://github.com/gradle/gradle/issues/5008 --- src/main/groovy/com/moowork/gradle/node/task/SetupTask.groovy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/groovy/com/moowork/gradle/node/task/SetupTask.groovy b/src/main/groovy/com/moowork/gradle/node/task/SetupTask.groovy index 01ff719..ba51e2d 100644 --- a/src/main/groovy/com/moowork/gradle/node/task/SetupTask.groovy +++ b/src/main/groovy/com/moowork/gradle/node/task/SetupTask.groovy @@ -181,6 +181,9 @@ class SetupTask artifact 'v[revision]/[artifact](-v[revision]-[classifier]).[ext]' ivy 'v[revision]/ivy.xml' } + metadataSources { + artifact() + } } }