[GRADLE-1707] Eclipse plugin should eliminate Eclipse warning: Classpath entry ... will not be exported or published Created: 30/Jul/11 Updated: 04/Jan/13 Resolved: 17/Mar/12 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 1.0-milestone-3 |
Fix Version/s: | None |
Type: | Improvement | ||
Reporter: | David Oliver | Assignee: | Szczepan Faber |
Resolution: | Duplicate | Votes: | 1 |
Description |
All of the Eclipse plugin generated classpath variables make Eclipse generate an inappropriate error message for every one: Gradle Eclipse plugin should be able to eliminate such errors somehow such as making this entry as described below: By adding an attribute as described here the inappropriate error can be eliminated |
Comments |
Comment by Peng Deng [ 31/Aug/11 ] |
As mentioned in eclipse { project { name = 'helloworld' } classpath { plusConfigurations += configurations.providedCompile noExportConfigurations += configurations.providedCompile file { withXml { xml -> xml.asNode().classpathentry.findAll{ it.@kind == 'lib' }.each{ it.appendNode('attributes').appendNode( 'attribute', [ name: it.@exported ? 'org.eclipse.jst.component.dependency' : 'org.eclipse.jst.component.nondependency', value: it.@exported ? '/WEB-INF/lib' : '' ] ) } } } } } |
Comment by Szczepan Faber [ 17/Mar/12 ] |
This is a duplicate of: Let's move the discussion there. |