google / j2cl

Java to Closure JavaScript transpiler
Apache License 2.0
1.23k stars 145 forks source link

Conversion from GWT #85

Closed spardue closed 2 years ago

spardue commented 4 years ago

Hello,

Any chance there will be a tool to convert over from GWT to this project?

niloc132 commented 4 years ago

If you are using JSNI, you can already translate that code to JsInterop, which works nearly the same in both projects. If you are using Generators, these can almost all be rewritten as Annotation Processors. As for the rest of the ecosystem, many of the components have been updated in this same way already, so that they are compatible with either GWT2 or J2CL projects.

The largest issue for most projects is likely to be the changes in how the compiler is meant to be part of some other build system rather than run its own de facto build tool, where it will behave very similarly to javac, etc. The biggest impact to Maven-based GWT projects will be encouraging/requiring them to break up client/server/shared into distinct modules, rather than one big classpath to hold everything.