Skip to content

Commit

Permalink
add xtext nature automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
oehme committed Mar 13, 2014
1 parent aa2dde4 commit a03f45a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ class XtextPlugin implements Plugin<Project> {
settingsTask.configure(xtext)
project.tasks[EclipsePlugin.ECLIPSE_TASK_NAME].dependsOn(settingsTask)

def EclipseModel eclipse = project.extensions.getByType(EclipseModel)
eclipse.getProject().buildCommand("org.eclipse.xtext.ui.shared.xtextBuilder")
eclipse.getProject().natures("org.eclipse.xtext.ui.shared.xtextNature")

project.afterEvaluate{
project.dependencies.add("xtextTooling", "org.eclipse.xtext:org.eclipse.xtext:${xtext.version}")
project.dependencies.add("xtextTooling", "org.xtext:xtext-gradle-lib:0.0.2")
Expand Down

0 comments on commit a03f45a

Please sign in to comment.