gwt-gradle-plugin
gwt-gradle-plugin copied to clipboard
Compiler Flags for GWT and VM
I want to set the following GWT arguments:
-superDevMode
-startupUrl
-codeServerPort 9997
-bindAddress 192.168.178.26
and for the Java VM I would like to set:
-XstartOnFirstThread
Is there an option to set these arguments?
The first part of my question is solved by: https://github.com/steffenschaefer/gwt-gradle-plugin/issues/55
The second part about the Java VM args is still open.
I am also looking for a way to add compiler or jvm arguments for the compileGwt task. I need to do this in order to use the project lombok library with GWT client side code. However, I cannot find a way to do this using the Gradle plugin.
Would this be possible by making the AbstractGwtActionTask.args(...) and AbstractGwtActionTask.jvmArgs(...) methods public?
I just created a pull request #92 that allows setting additional JVM args within the gwt configuration section.
I'm new to Gradle plugin development, so I'm not quite how sound the implementation is. Hopefully it works for you.
tasks.withType(de.richsource.gradle.plugins.gwt.AbstractGwtActionTask) {
jvmArgs "-Xss1M"
}