Skip to content

Commit

Permalink
applying eclipse-wtp earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbsox committed Mar 8, 2018
1 parent 6550618 commit fa80515
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/groovy/net/wasdev/wlp/gradle/plugins/Liberty.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ class Liberty implements Plugin<Project> {
project.configurations.create('libertyLicense')
project.configurations.create('libertyRuntime')

//Used to set project facets in Eclipse
project.pluginManager.apply('eclipse-wtp')
project.tasks.getByName('eclipseWtpFacet').finalizedBy 'libertyCreate'

//Create expected server extension from liberty extension data
project.afterEvaluate {
setEclipseFacets(project)
Expand Down Expand Up @@ -225,10 +229,6 @@ class Liberty implements Plugin<Project> {
}

private void setEclipseFacets(Project project) {
//Used to set project facets in Eclipse
project.pluginManager.apply('eclipse-wtp')
project.tasks.getByName('eclipseWtpFacet').finalizedBy 'libertyCreate'

//Uplift the jst.web facet version to 3.0 if less than 3.0 so WDT can deploy properly to Liberty.
//There is a known bug in the wtp plugin that will add duplicate facets, the first of the duplicates is honored.
if(project.plugins.hasPlugin('war')) {
Expand Down

0 comments on commit fa80515

Please sign in to comment.