https://www.java.com/en/download/
$ curl -s get.sdkman.io | bash $ sdk install groovy $ sdk install gradle
This step only applies if you are using Intellij's Idea as your ide
gradle idea
The file config.groovy
has settings that are applicable for running on the production server. You may create a file
config.local.groovy
, which if present will be merged into the config overriding any values. Feel free to alter paths,
ports, timeouts and other settings by changing this file. It is in the .gitignore
.
gradle run
And you should see some output similar to
oejs.ServerConnector:main: StartedServerConnector@73483dda{HTTP/.1,[http/1.1]}{0.0.0.0:8080} oejs.Server:main: Started @3287ms
You may have problems with Ctrl+C
on Cygwin/windows with gradle being cancelled, but the server still running, and thus
not releasing the bind on the port. In this case, you'll need to find and kill the java process keeping the port open
every time you run a new server.
To run the server from Idea, setup a new Run/Debug configuration. Add new configuration -> Application, set the Main
class to webtesting.MainClass