Skip to content

Commit

Permalink
LDAP-302: Fix release checks for SNAPSHOT springio
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Winch committed May 21, 2014
1 parent 23412e8 commit 4bb81b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gradle/release-checks.gradle
Expand Up @@ -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")
}
Expand Down

0 comments on commit 4bb81b8

Please sign in to comment.