I have recently argued that you should not get your dependencies
from JetBrains Marketplace but use a build tool such as Maven or Gradle to fetch them for you. The simplest way to get
started is to use Gradle. Install the latest version of Gradle (7.3.3 at the moment) and put the contents below into a
file called build.gradle.kts
in the directory of your MPS project, adjusting as needed:
plugins {
id ("com.specificlanguages.mps") version "1.2.2"
}
repositories {
maven {
url = uri("https://artifacts.itemis.cloud/repository/maven-mps")
}
}
dependencies {
"generation"("com.mbeddr:platform:2021.1.+")
}
Now run gradle setup
.
Gradle will use the MPS Gradle Plugin
(com.specificlanguages.mps
) to download mbeddr platform from itemis
Nexus and unpack it into the build/dependencies
directory of
your project.
Next, add the build/dependencies
directory to MPS as a project library and you’re all set to use the mbeddr
platform from your MPS project.
If you want to also use KernelF (part of iets3.opensource), add it in the
dependencies
block:
dependencies {
//...
"generation"("org.iets3:opensource:2021.1.+")
}
The versions of dependencies should match the MPS version you use. Although MPS is nearing its 2021.3 release, mbeddr platform and iets3.opensource only have versions compatible with 2021.1 at the moment. They will certainly get brought up to date in the future.
With a bit more configuration, and provided you follow some conventions, the MPS Gradle Plugin can also build your project with an appropriate version of MPS. You can find more details on the project page.