Switches to new ScalaProject API