You'll need to add a port setting to application.conf
and load it manually, like this.
import com.typesafe.config._
val conf = ConfigFactory.load()
val serverPort = conf.getInt("port")
IO(Http) ! Http.Bind(service, interface = "localhost", port = serverPort)
where src/main/resources/application.conf looks like this:
port = 8090