Gradle + Eclipse: How to not export JARs that are dependencies of a dependency?

The code I pasted above shows up all screwed up and repeated if I use the code tags, not sure why, probably markup issues. I try to post it again in this comment:

eclipse {

classpath {

file {

whenMerged { classpath ->

classpath.entries.findAll { entry -> entry.path ==~ /./velocity-1.4.jar$/ || entry.path ==~ /./velocity-dep-1.4.jar$/ }*.exported = false

}

}

} }

Did you enclose the code in HTML code tags?

The regexpr keep showing wrong also in the comment. The rest looks right.

I enclosed it between open angular + code + closed angular open angular + forward slash + code + closed angular

Try HTML code tags then.