Xtext upgrade [message #1793434] |
Wed, 08 August 2018 05:27  |
Eclipse User |
|
|
|
Hi All,
We have a bunch of DSLs written with Xtext 2.7 which we're going to migrate to the newest Xtext 2.14. In our builds we use Tycho.
What is your recommendation - should we just update version of dependencies in our poms and target definition platform files. Or would it be more recommended to generate new projects from scratch and move our DSL projects to the new structure?
Dominik
|
|
|
|
|
|
|
Re: Xtext upgrade [message #1797616 is a reply to message #1793447] |
Fri, 02 November 2018 14:16  |
Eclipse User |
|
|
|
I assume you are trying to upgrade to latest Xtext/Xtend release by keeping your current code / project intact. If yes, read ahead:
You will required to do changes in following files (in case below we are upgrading to 2.15.0 from 2.13.0):
1. parent/pom.xml
- <tycho-version>1.0.0</tycho-version>
- <xtextVersion>2.13.0</xtextVersion>
+ <tycho-version>1.2.0</tycho-version>
+ <xtextVersion>2.15.0</xtextVersion>
2. MANIFEST.MF
e.g. parent/mydsl/META-INF/MANIFEST.MF
- org.eclipse.xtext.xbase.lib;bundle-version="2.13.0",
- org.antlr.runtime,
+ org.eclipse.xtext.xbase.lib;bundle-version="2.14.0",
+ org.antlr.runtime;bundle-version="[3.2.0,3.2.1)",
org.eclipse.xtext.util,
org.eclipse.emf.common,
- org.eclipse.xtend.lib;bundle-version="2.13.0",
+ org.eclipse.xtend.lib;bundle-version="2.14.0",
3. parent/mydsl.target/target.target
update repository:
-<repository location="http://download.eclipse.org/releases/oxygen/201709271000"/>
+<repository location="http://download.eclipse.org/releases/2018-09/201809191002"/>
update xtext release version:
-<repository location="http://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.13.0/"/>
+<repository location="http://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.15.0/"/>
4. These files will be automatically updated once you build `mvn clean install`
parent/feature/feature.xml
parent/ui/plugin.xml_gen
Hope this helps!
|
|
|
Powered by
FUDForum. Page generated in 0.03863 seconds