How to upgrade an existing application from GWT 2.0 to GWT 2.6

How to upgrade an existing multi-module application in GWT2.0 to GWT 2.6? I am using Eclipse Kepler and Java version is 7.

+3


source to share


2 answers


1.- If you are planning to do this, I would go with 2.7.0, which is the latest stable release with many improvements.

2.- There is a long way to go from 2.0 to 2.6 and 2.7, so I recommend reading all the release notes in between. It's also handy to have a list of gwt devrecations next to

3.- If you are not using a good build system or are about to change it, you can probably upgrade to it before updating your project.

4.- Since you are using eclipse Kepler update it to eclipse Luna with the latest google-eclipse plugin. And check that everything continues to work.

5.- Change your dependencies as your project depends on gwt-user-2.7.0

gwt-dev-2.7.0

and gwt-codeserver-2.7.0

. Maybe you are using gwt 3party libraries, you should check if these libraries still work and update them.



6.- Open the project in your IDE and try to identify any compilation error. There isn't that much change in the API, but you probably need to choose other constructors and methods, like using SafeHtml instead of String, etc. Don't forget to look for deprecation warnings as well.

7.- Run your tests to make them pass. Add tests for the modified code.

8.- When everything is green, do a full test in all browsers and fix any issue you may find.

9.- Finally, consider porting some parts of your application to use new things like Cell Widgets etc.

10.- Change your team habits to start using super-dev mode instead of classic-dev mode.

+7


source


When updating gwt versions, what to do is clearly stated in this link

I recently upgraded my GWT project from 2.4.0 to 2.6.0, I faced a lot of problems from scratch. Finally, I did this by referring to the above link and some other gwt websites.



If you have any questions, write in the comments, I will do my help.

0


source







All Articles