Excluding a Grails build scope dependency -



Excluding a Grails build scope dependency -

using grails 2.4.3, how can exclude dependency that's defined in build scope?

examplegrails bundled library spock-core-0.7-groovy-2.0.jar; when adding standard global dependency exclusion:

... grails.project.dependency.resolution = { // inherit grails' default dependencies inherits('global') { excludes 'spock-core' } ...

spock excluded dependency scopes except build scope.

is issue don't want in .war file? if can remove so:

grails.war.resources = { stagingdir -> delete(file:"${stagingdir}/web-inf/lib/spock-core-0.7-groovy-2.0.jar") }

grails build dependencies

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

ubuntu - Bash Script to Check That Files Are Being Created -

Php operator `break` doesn't stop while -