From 26db320d3c8d70e193ed6ae9f00bac5e0abb7bce Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Wed, 21 May 2014 14:04:18 -0500 Subject: [PATCH] SEC-2579: Ignore springio props in release checks --- gradle/release-checks.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gradle/release-checks.gradle b/gradle/release-checks.gradle index b828164f6f..78294a81bf 100644 --- a/gradle/release-checks.gradle +++ b/gradle/release-checks.gradle @@ -11,7 +11,11 @@ if(!snapshotBuild) { } def verifyNoDependenciesMatchingVersion(def pattern) { - def dependencies = configurations.all*.allDependencies*.findAll { d -> d.version?.matches(pattern) }.flatten().toSet().join("\n ") + def dependencies = configurations.all*.allDependencies*.findAll { d -> + def ignored = 'io.spring.platform:platform-versions' + def groupAndName = "$d.group:$d.name".toString() + ignored != groupAndName && d.version?.matches(pattern) + }.flatten().toSet().join("\n ") if(dependencies) { throw new GradleException("${project.name} cannot have dependencies with a version that matches $pattern when its version is ${project.version}. Got\n $dependencies") }