Skip to content

Instantly share code, notes, and snippets.

@spg
Created September 25, 2014 15:26
Show Gist options
  • Save spg/bc3758be72dc606427d4 to your computer and use it in GitHub Desktop.
Save spg/bc3758be72dc606427d4 to your computer and use it in GitHub Desktop.
Using Ultra Dev Mode
Enable the new Super dev mode.
Guys I'm using locally for one week now, the snapshot of GWT 2.7.0 in my projects. This (nightly) snapshot contains the new development improving the super dev mode. The super dev mode now does a compilation "per file" and each time you hint the button compile, it recompiles only the modified files if any. So you need less than 1 or 2 seconds to recompile the application!!! (the first compilation takes the same time than before)
And in the near future, you won't have to click on the compile button, the super dev mode will recompile your application on the fly.
To enable it, modify your maven pom files:
- use this version of GWT
<gwt.version>2.7.0-SNAPSHOT</gwt.version>
- Add the following repository:
<repositories>
<repository>
<id>gwt-sonatype-snapshots</id>
<url> https://oss.sonatype.org/content/repositories/google-snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>
- you need to add the dependency to code-server:
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-codeserver</artifactId>
<version>${gwt.version}</version>
<scope>provided</scope>
</dependency>
- if you are using the gwt-maven plugin, change it version to 2.6.1
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.6.1</version>
Then modify your configuration that run the super dev mode of your project by adding the following dev mode parameter:
-XcompilePerFile
Enjoy !!!
@spg
Copy link
Author

spg commented Sep 25, 2014

You might have to override dependencies of the gwt-maven-plugin:

<plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>gwt-maven-plugin</artifactId>
                <version>2.6.1</version>
                <dependencies>
                    <dependency>
                        <groupId>com.google.gwt</groupId>
                        <artifactId>gwt-user</artifactId>
                        <version>${gwt.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>com.google.gwt</groupId>
                        <artifactId>gwt-dev</artifactId>
                        <version>${gwt.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>com.google.gwt</groupId>
                        <artifactId>gwt-codeserver</artifactId>
                        <version>${gwt.version}</version>
                    </dependency>
                </dependencies>
                <configuration>
   ...

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