apply from: "$rootDir/gradle/instrumentation.gradle" muzzle { pass { group = 'org.springframework' module = 'spring-context' versions = "[3.1.0.RELEASE,]" assertInverse = true } } dependencies { // 3.2.3 is the first version with which the tests will run. Lower versions require other // classes and packages to be imported. Versions 3.1.0+ work with the instrumentation. library "org.springframework:spring-context:3.1.0.RELEASE" testLibrary "org.springframework:spring-context:3.2.3.RELEASE" }