Skip to content

Instantly share code, notes, and snippets.

@niloc132
Created October 18, 2017 17:12
Show Gist options
  • Save niloc132/6200610b05c56411b1863524ff2a779e to your computer and use it in GitHub Desktop.
Save niloc132/6200610b05c56411b1863524ff2a779e to your computer and use it in GitHub Desktop.
How to disable compiler assertions in gwt:test without preventing tests from running correctly.
<plugin>
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.0-rc-7</version>
<extensions>true</extensions>
<configuration>
...
<!-- Disable assertions to avoid incorrect compiler errors, but enable test assertions anyway -->
<enableAssertions>false</enableAssertions>
<testArgs>
<testArg>-checkAssertions</testArg>
</testArgs>
...
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment