Are you saying that for the gradle plugin, the projects' compilation output is not included in the Enhancer classpath?
The plugin is grabbing sourceSet.getRuntimeClasspath() as the basis for the classloader, which should be correct.