Example showing how to build Spoofax 2 languages from the command-line with Maven or Gradle. Contains two extremely simple languages:
front
: default Spoofax 2 project, with the start constructor changed toFront
.back
: not a real language, but just extendsfront
. Has a source dependency tofront
, and adds a 'Compile' builder to it.
Requires Maven to be installed. See https://spoofax.dev/howtos/development/setup-maven-for-spoofax-dev/ on how to install the recommended Maven version.
Run:
mvn clean verify
A Gradle wrapper is included, so Gradle does not need to be installed. A JDK version 8 or higher is required.
Run:
./gradlew build
The Gradle build does not build Eclipse plugins, features, and update sites.