From 40146cdbc052146959b3f73199abbc56029defe7 Mon Sep 17 00:00:00 2001 From: Clinton Alexander Date: Mon, 4 Sep 2017 15:20:44 +0100 Subject: [PATCH] Fixed a crash in cordformation when trying to build nodes for a project with a file as a dependency and any other dependencies without a group --- constants.properties | 2 +- .../src/main/groovy/net/corda/plugins/Cordformation.groovy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/constants.properties b/constants.properties index 002037fd86..ded142b810 100644 --- a/constants.properties +++ b/constants.properties @@ -1,4 +1,4 @@ -gradlePluginsVersion=0.15.2 +gradlePluginsVersion=0.16.0 kotlinVersion=1.1.4 guavaVersion=21.0 bouncycastleVersion=1.57 diff --git a/gradle-plugins/cordformation/src/main/groovy/net/corda/plugins/Cordformation.groovy b/gradle-plugins/cordformation/src/main/groovy/net/corda/plugins/Cordformation.groovy index 59b495879e..235570cf74 100644 --- a/gradle-plugins/cordformation/src/main/groovy/net/corda/plugins/Cordformation.groovy +++ b/gradle-plugins/cordformation/src/main/groovy/net/corda/plugins/Cordformation.groovy @@ -71,7 +71,7 @@ class Cordformation implements Plugin { def filteredDeps = directDeps.findAll { excludes.collect { exclude -> (exclude.group == it.group) && (exclude.name == it.name) }.findAll { it }.isEmpty() } filteredDeps.each { // net.corda may be a core dependency which shouldn't be included in this cordapp so give a warning - if(it.group.contains('net.corda.')) { + if(it.group && it.group.contains('net.corda.')) { logger.warn("You appear to have included a Corda platform component ($it) using a 'compile' or 'runtime' dependency." + "This can cause node stability problems. Please use 'corda' instead." + "See http://docs.corda.net/cordapp-build-systems.html")