I am moving my build from build.sbt to Build.scala files and I am having trouble overriding the jetty port setting when using the xsbt-web-plugin. When using build.sbt I was able to set the property using:
port in container.Configuration := 8081
In my .scala files I have tried a few things but jetty is always starting on 8080 for example in my BuildSettings object:
import sbt._
import Keys._
import com.earldouglas.xsbtwebplugin.PluginKeys._
object BuildSettings {
lazy val settings = com.earldouglas.xsbtwebplugin.WebPlugin.webSettings ++ seq(
...
port := 8081,
...
)
}
I have also tried overriding it in the Project definition in Build.scala:
lazy val root = Project("test",file("."))
.settings(settings: _*)
.settings(port := 8081)
But it always starts on 8080. In both of these cases running show port
shows 8081.