user79074
user79074

Reputation: 5280

How to set jetty port xsbt plugin 1.0.0-M7

I have just upgraded from 0.9.0 to 1.0.0-M7 of the xsbt web plugin. However my build.scala now no longer compiles. I am setting the jetty port by doing the following:

import com.earldouglas.xsbtwebplugin.PluginKeys.port
import com.earldouglas.xsbtwebplugin.WebPlugin.{container, webSettings}

... // in my Build object
  def Conf = config("container")
  def jettyPort = 8081

But after the upgrade the compiler can no longer find the imports giving me the error below. I have been unable to find an updated sample of the correct way to set this port.

Thanks Des

import com.earldouglas.xsbtwebplugin.PluginKeys.port
[error]                        ^
[error] .../project/build.scala:9: object xsbtwebplugin is not a member of package com.earldouglas

Upvotes: 0

Views: 199

Answers (1)

Christian
Christian

Reputation: 4593

  1. The package has changed to com.earldouglas.xwp
  2. To get the settings for jetty, you have to call jetty(...). This method exists in the com.earldouglas.xwp.XwpPlugin object.

See the readme.

Upvotes: 0

Related Questions