Play 2.4 value confDirectory is not a member of object play.PlayImport.PlayKeys

130 Views Asked by At

I'am trying to upgrade to play framework version 2.4 from version 2.3, but i have the following error:

value confDirectory is not a member of object play.PlayImport.PlayKeys

Besides,I add this import as play2.4 Migration guide mention but the error persisst

import play.sbt.PlayImport._

what is the correct import for the config directory?

1

There are 1 best solutions below

4
Valy Dia On BEST ANSWER

It does look like the keys has been removed indeed. What if you use the resourceDirectory instead?

lazy val appServerSettings = Seq( 
  loggerConfig := resourceDirectory.value / "application-logger.xml",
  ...
)

In Play 2.7, this key does point toward the conf directory.