playframework
playframework copied to clipboard
Cannot disable Http Port
Gradle play plugin does not have ability to disable http port
Expected Behavior Play (SBT) allows user to disable http port by passing the -Dhttp.port=disabled option (See: https://www.playframework.com/documentation/2.6.x/ConfiguringHttps#Turning-HTTP-off).
Current Behavior Current Gradle play plugin only takes Integer as the http.port number. (See: PlayRunAdapterV24X and PlayRunAdapterV26X).
In both implementation, play.core.server.DevServerStart.mainDevHttpMode method is used to start the play server.
If you look at play's DevServerStart api, it actually has one more method called mainDevOnlyHttpsMode which can be used to start play server in HTTPS only mode. You can see how this is done in play's Reloader.
Your Environment Play: 2.4 (the issue is applicable to later version)
Thanks Gary! You're helping me on home projects now 😂