Details
-
Type:
Bug
-
Status:
Open
-
Resolution: Unresolved
-
Affects Version/s: 0.9.2
-
Fix Version/s: None
Description
When building eclipse project files, gradle eclipse always defaults to setting jst.web to 2.4, which is YEARS old. There should be a simple way to set this.
A workaround is given here:
http://eqv.ca/research/2010/12/26/gradle-and-eclipse-wtp-jst-web-facet-version
The provided workaround needs a little modification as of version 1.0-milestone-3.
Just change 'eclipseWtp' to 'eclipseWtpFacet', so that it should be:
eclipseWtpFacet.whenConfigured { config -> config.facets.each { if (it.name == 'jst.web') { it.version = configurations.providedCompile.getAllDependencies().find{ it.group == 'javax.servlet' && it.name == 'servlet-api' }.version } } config.facets.unique() }eclipseWtpFacet.whenConfigured { config -> config.facets.each { if (it.name == 'jst.web') { it.version = configurations.providedCompile.getAllDependencies().find{ it.group == 'javax.servlet' && it.name == 'servlet-api' }.version } } config.facets.unique() }