Skip to content

Instantly share code, notes, and snippets.

@adrienbaron
Last active April 10, 2018 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adrienbaron/56c7ed6480c0a1f8a15b5c713dd3d9f6 to your computer and use it in GitHub Desktop.
Save adrienbaron/56c7ed6480c0a1f8a15b5c713dd3d9f6 to your computer and use it in GitHub Desktop.
Update Guide for Vue GWT beta-7

If you are using Vue GWT beta-6, please refer to the following guide to update to beta-7. You can also checkout the Vue GWT beta-7 Release note.

Annotation Processors are now used for template processing, this has several advantages:

  • Errors in HTML templates are caught by your IDE at build time.
  • Less boilerplate classes are generated.
  • No more dependency on GWT 2.x generators. Should make Vue GWT compatible with GWT 3.x out of the box.

Here is how to upgrade from beta-6:

Expose Components Templates in src/main/java to Maven

Add the following to your pom.xml:

<build>
    <resources>
        <resource>
            <directory>src/main/java</directory>
            <includes>
                <include>**/*.html</include>
            </includes>
        </resource>
    </resources>
</build>

Configure your IDE

When using GWT 2.x generators GWT was responsible for watching your template file changes. With Annotation Processor you need a plugin to make your IDE process your templates when you change them.

IntelliJ

Check here how to configure IntelliJ to enable auto build when changing your Components Templates.

Eclipse

Check here how to configure Eclipse to enable auto build when changing your Components Templates and Annotation Processing and make the Template Annotation processor work.

Cleaning your Project

Run on your project:

mvn clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment