Adapt to new ScalaPlugin APIs