HHH-13130 - Provide Gradle-based bytecode enhancement as a task separate from the compileJava task

This commit is contained in:
Steve Ebersole 2019-09-18 12:19:32 -05:00
parent 283802c491
commit 4ff3c0b6e4
1 changed files with 4 additions and 0 deletions

View File

@ -71,6 +71,10 @@ public class EnhancementHelper {
}
};
if ( options.getEnableExtendedEnhancement() ) {
project.getLogger().warn("Extended enhancement is enabled. Classes other than entities may be modified. You should consider access the entities using getter/setter methods and disable this property. Use at your own risk." );
}
final Enhancer enhancer = Environment.getBytecodeProvider().getEnhancer( enhancementContext );
for ( File classesDir: sourceSet.getOutput().getClassesDirs() ) {