Skip to content

Building

The MPS extensions are built using Gradle. To build the source code, all you need on the machine is a Java JDK. You need the following JDK versions depending on the MPS version:

  • 2024.1 and higher: JDK 21
  • 2022.2 and higher: JDK 17
  • older versions: JDK 11
  • ancient versions: JDK 8

If you want to contribute to MPS-extensions, you need MPS. The current used MPS version can be found in the build.gradle file under the value ext.mpsMajor.

To build the project, run:

./gradlew # Mac and Linux
gradlew.bat # Windows

This will fetch the required MPS version from the internet, so you need to be online when first execute the build. The default task is build_languages.

The default task doesn’t run the test when building if you want to execute the tests then run:

./gradlew run_tests # Mac and Linux
gradlew.bat run_tests # Windows

The documentation is built using Material for MkDocs and Python 3. It can be previewed by running:

./gradlew previewDocs # Mac and Linux
gradlew.bat previewDocs # Windows