- I needed Servlet 3.0 features (like config through ServletContainerInitializer interface), but unfortunately Gradle's Jetty plugin (as of v2.4) uses Jetty 6, so it doesn't support Servlet 3.0. So I'm not bothering.
- Instead, I used the third party plugin gretty: http://akhikhl.github.io/gretty-doc/Getting-started.html
- Had problems using gretty with the IDEA's Default Gradle Wrapper (gradle 1.8):
Error:Unable to load class 'org.codehaus.groovy.runtime.typehandling.ShortTypeHandling'.
Possible causes for this unexpected error include:
- Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
So instead I switched to using Local Gradle Distribution (2.4).
Use gradle appStart to start the server.
Use gradle appStop to stop the server.
No comments:
Post a Comment