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

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -