We have a different app using port 9000 so we like to override the default play http port through:
tasks.withType(PlayRun) {
forkOptions.jvmArgs =["-Dhttp.port=7777 -Dproperties.home=conf"]
println " ----> forkOptions.jvmArgs = ${ forkOptions.jvmArgs }"
}
However, it doesn’t seem to work for the port (for the properties.home it works OK)
----> forkOptions.jvmArgs = [-Dhttp.port=7777 -Dproperties.home=conf ]
Failed to run Play
org.jboss.netty.channel.ChannelException: Failed to bind to: /0.0.0.0:9000
at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:272)