Play project with Scala project dependency

I’d really like to declare this in my Play project:

dependencies {
    play project(":my-scala-library")

It seems like :my-scala-library is assumed to be a Play project as well because I get circular task dependency errors like: :my-scala-library:compilePlayBinaryScala => … => :my-scala-library:playBinary => … => :my-scala-library:compilePlayBinaryScala

It wasn’t obvious to me how to prevent this. I thought may if there was a component-model ready scala-lang plugin that may help.

Any advice?