-
Notifications
You must be signed in to change notification settings - Fork 0
Installation script
This section describe the steps taken by the installation gradle script.
Physics java runtime depends on Processing and ode4j. A gradle script to fetch the binaries and package them into one single file is located into ./dependencies/java_runtime/.
The project is configured to load the java-runtime-all.jar file, which is located in the build folder generated when running ./gradlew packageJavaRuntime in the repository root directory.
As for the javascript runtime, the bundle is committed with the sources, but you can optionally regenerate it with npm with the below script.
# In Physics root directory
cd ./solutions/jetbrains.mps.samples.Physics.javascript.runtime
npm install
npm run buildPhysics is based on iets3.opensource, which would require mbeddr and on iets3.opensource.genjs, which generate javascript using ecmascript4mps.
Those dependencies are fetched into the artifacts directory with the gradle script using maven repositories :
- mbeddr repository: for mbeddr and iets3.opensource
- jitpack repository: for iets3.genjs (and ecmascript4mps)
Afterwards, those dependencies are made visible to MPS with the generateLibrariesXml gradle task. It creates a libraries.xml in the .mps folder which point to all required artifacts.