I' having issues while trying to change the port for Gretty as indicated in the Gretty documentation.
Gradle appRunWar -PhttpPort=8888
The only way it works is by changing the build.gradle gretty block
gretty {
http = 8888
contextPath = '/'
}
I found the solution after searching the Gretty Possible Running Build in Different Ports Github repository.
All you need to do is change the build.gradle file as follows
Another way to do this is by adding the following
Both solutions will work by passing property arguments to the guild file