Skip to content

Commit

Permalink
HHH-13130 - Provide Gradle-based bytecode enhancement as a task separ…
Browse files Browse the repository at this point in the history
…ate from the compileJava task
  • Loading branch information
sebersole committed Sep 25, 2019
1 parent 283802c commit 4ff3c0b
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -71,6 +71,10 @@ public boolean doExtendedEnhancement(UnloadedClass classDescriptor) {
}
};

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() ) {
Expand Down

0 comments on commit 4ff3c0b

Please sign in to comment.