I'm trying to use the [Play Gradle Plugin](https://docs.gradle.org/current/userguide/play_plugin.html) to compile/package a Play 2.3.x app that uses Ebean.

Everything works fine during compilation and packaging, but when I run the app I get the well known error

```
Entity type class SomeEntity is not an enhanced entity bean. 
Subclassing is not longer supported in Ebean

```

So how can I can make Gradle run the enhancer during compilation?