Skip to content

Commit

Permalink
Migrate to MPS 2021.3; describe migration/build steps in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenschindler committed Feb 21, 2024
1 parent c2ec579 commit d2e130a
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .mps/migration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<entry key="jetbrains.mps.ide.mpsmigration.v191.UpdateJavaStubMethodRefs" value="executed" />
<entry key="jetbrains.mps.ide.mpsmigration.v_2019_3.DefaultFacetExplicitPersistence" value="executed" />
<entry key="jetbrains.mps.ide.mpsmigration.v_2021_2.SplitMPSCoreStub" value="executed" />
<entry key="project.migrated.version" value="212" />
<entry key="jetbrains.mps.ide.mpsmigration.v_2021_3.ExtractMPSBootStubs" value="executed" />
<entry key="project.migrated.version" value="213" />
</component>
</project>
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,13 @@ Adding back the removed JavaFX libraries to JetBrains MPS (>= 2020.3)
## References

- [How to Add JARs to a Jetbrains MPS Project](https://tomassetti.me/how-to-add-jars-and-resources-in-a-jetbrains-mps-project/)
- [Where do I put my jars](https://specificlanguages.com/posts/2022-03/04-where-do-i-put-my-jars/)
- [Where do I put my jars](https://specificlanguages.com/posts/2022-03/04-where-do-i-put-my-jars/)

## Migrating & Building
1. Open in new MPS
2. Execute migrations
3. Rebuild build solution in MPS
4. Adapt build.gradle dependencies (matching with new MPS)
5. Adapt version number for the javafx plugin in gradle.properties
6. Run ./gradlew to check that it is fine
7. Merge to main and this will release the plugin
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ configurations {
}

dependencies {
mps "com.jetbrains:mps:2021.2.+"
languageLibs "com.mbeddr:platform:2021.2+"
mps "com.jetbrains:mps:2021.3.+"
languageLibs "com.mbeddr:platform:2021.3+"
junitAnt 'org.apache.ant:ant-junit:1.10.6'
}

Expand Down
22 changes: 16 additions & 6 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,16 @@

<path id="path.mps.ant.path">
<pathelement location="${artifacts.mps}/lib/ant/lib/ant-mps.jar" />
<pathelement location="${artifacts.mps}/lib/util.jar" />
<fileset dir="${artifacts.mps}/lib">
<include name="util.jar" />
<include name="3rd-party-rt.jar" />
</fileset>
</path>

<taskdef resource="jetbrains/mps/build/ant/antlib.xml" classpathref="path.mps.ant.path" />

<generator-settings id="m2m-defaults" strictMode="true" parallelThreads="8" inplaceTransform="false" warnWrongChild="true" createStaticRefs="true" skipUnmodifiedModels="${mps.generator.skipUnmodifiedModels}" />

<target name="assemble" depends="classes, declare-mps-tasks">
<mkdir dir="${build.layout}/JavaFX" />
<mkdir dir="${build.layout}/JavaFX/META-INF" />
Expand Down Expand Up @@ -190,7 +197,8 @@

<target name="generate" depends="declare-mps-tasks, fetchDependencies">
<echo message="generating" />
<generate strictMode="true" parallelMode="true" parallelThreads="8" useInplaceTransform="false" hideWarnings="false" createStaticRefs="true" fork="true" skipUnmodifiedModels="${mps.generator.skipUnmodifiedModels}" logLevel="${mps.ant.log}">
<generate fork="true" logLevel="${mps.ant.log}">
<settings refid="m2m-defaults" />
<plugin path="${artifacts.mps}/plugins/mps-build" />
<plugin path="${artifacts.mps}/plugins/mps-core" />
<library file="${artifacts.mps}/languages/baseLanguage/closures.runtime.jar" />
Expand All @@ -209,7 +217,9 @@
<library file="${artifacts.mps}/languages/baseLanguage/jetbrains.mps.baseLanguage.scopes.jar" />
<library file="${artifacts.mps}/languages/baseLanguage/jetbrains.mps.baseLanguage.tuples.jar" />
<library file="${artifacts.mps}/languages/baseLanguage/jetbrains.mps.baseLanguage.tuples.runtime.jar" />
<library file="${artifacts.mps}/languages/baseLanguage/jetbrains.mps.baseLanguage.util.jar" />
<library file="${artifacts.mps}/languages/baseLanguage/jetbrains.mps.baseLanguageInternal.jar" />
<library file="${artifacts.mps}/languages/editor/jetbrains.mps.editing.runtime.jar" />
<library file="${artifacts.mps}/languages/editor/jetbrains.mps.editor.runtime.jar" />
<library file="${artifacts.mps}/languages/editor/jetbrains.mps.editorlang.runtime.jar" />
<library file="${artifacts.mps}/languages/editor/jetbrains.mps.ide.editor.jar" />
Expand Down Expand Up @@ -256,13 +266,15 @@
<library file="${artifacts.mps}/languages/make/jetbrains.mps.smodel.resources.jar" />
<library file="${artifacts.mps}/languages/mps-stubs.jar" />
<library file="${artifacts.mps}/languages/plaf/jetbrains.mps.baseLanguage.search.jar" />
<library file="${artifacts.mps}/languages/plaf/jetbrains.mps.baseLanguage.util.jar" />
<library file="${artifacts.mps}/languages/plaf/jetbrains.mps.ide.platform.jar" />
<library file="${artifacts.mps}/languages/plaf/jetbrains.mps.ide.refactoring.platform.jar" />
<library file="${artifacts.mps}/languages/runtimes/jetbrains.mps.analyzers.runtime.jar" />
<library file="${artifacts.mps}/languages/runtimes/jetbrains.mps.dataFlow.runtime.jar" />
<library file="${artifacts.mps}/languages/runtimes/jetbrains.mps.findUsages.runtime.jar" />
<library file="${artifacts.mps}/languages/runtimes/jetbrains.mps.lang.behavior.api.jar" />
<library file="${artifacts.mps}/languages/runtimes/jetbrains.mps.lang.feedback.context.jar" />
<library file="${artifacts.mps}/languages/runtimes/jetbrains.mps.lang.feedback.problem.legacy-constraints.jar" />
<library file="${artifacts.mps}/languages/runtimes/jetbrains.mps.lang.feedback.problem.rt.jar" />
<library file="${artifacts.mps}/languages/runtimes/jetbrains.mps.lang.migration.runtime.jar" />
<library file="${artifacts.mps}/languages/runtimes/jetbrains.mps.lang.smodel.query.runtime.jar" />
<library file="${artifacts.mps}/languages/runtimes/jetbrains.mps.refactoring.runtime.jar" />
Expand All @@ -289,9 +301,7 @@
</generate>
</target>

<target name="declare-mps-tasks">
<taskdef resource="jetbrains/mps/build/ant/antlib.xml" classpathref="path.mps.ant.path" />
</target>
<target name="declare-mps-tasks" />

<target name="makeDependents" />

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
javafxVersion=11.0.2
pluginVersion=2021.2
pluginVersion=2021.3
systemProp.org.gradle.internal.http.connectionTimeout=180000
systemProp.org.gradle.internal.http.socketTimeout=180000
2 changes: 1 addition & 1 deletion solutions/JavaFX/JavaFX.msd
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<dependency reexport="false">6354ebe7-c22a-4a0f-ac54-50b52ab9b065(JDK)</dependency>
</dependencies>
<languageVersions>
<language slang="l:f3061a53-9226-4cc5-a443-f952ceaf5816:jetbrains.mps.baseLanguage" version="11" />
<language slang="l:f3061a53-9226-4cc5-a443-f952ceaf5816:jetbrains.mps.baseLanguage" version="12" />
<language slang="l:f2801650-65d5-424e-bb1b-463a8781b786:jetbrains.mps.baseLanguage.javadoc" version="2" />
<language slang="l:ceab5195-25ea-4f22-9b92-103b95ca8c0c:jetbrains.mps.lang.core" version="2" />
<language slang="l:9ded098b-ad6a-4657-bfd9-48636cfe8bc3:jetbrains.mps.lang.traceable" version="0" />
Expand Down

0 comments on commit d2e130a

Please sign in to comment.