Xtend can be used in Eclipse. You can use your IDE's plug-in mechanism to add Xtend, using one of the URLs below.
To install the Xtend plug-in into a running Eclipse.
Milestones (right click & copy)
Nightly Builds (right click & copy)
You can create a readily configured project with the following command.
mvn archetype:generate -DarchetypeGroupId=org.eclipse.xtend -DarchetypeArtifactId=xtend-archetype
If you already have a project, you need to add the Xtend library:
<dependency>
<groupId>org.eclipse.xtend</groupId>
<artifactId>org.eclipse.xtend.lib</artifactId>
<version>2.37.0</version>
</dependency>
and the Xtend compiler plugin:
<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
<version>2.37.0</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/xtend-gen/main</outputDirectory>
<testOutputDirectory>${project.build.directory}/xtend-gen/test</testOutputDirectory>
</configuration>
</execution>
</executions>
</plugin>
Here is a minimal Gradle build script using Xtend:
plugins {
id "org.xtext.xtend" version "4.0.0"
}
repositories.mavenCentral()
dependencies {
compile 'org.eclipse.xtend:org.eclipse.xtend.lib:2.37.0'
}
For more information, visit the plugin’s page on GitHub
You can now use your IDE’s “New Xtend Class” wizard to start your journey.