HHH-13130 - Provide Gradle-based bytecode enhancement as a task separate from the compileJava task
This commit is contained in:
parent
283802c491
commit
4ff3c0b6e4
|
@ -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 );
|
final Enhancer enhancer = Environment.getBytecodeProvider().getEnhancer( enhancementContext );
|
||||||
|
|
||||||
for ( File classesDir: sourceSet.getOutput().getClassesDirs() ) {
|
for ( File classesDir: sourceSet.getOutput().getClassesDirs() ) {
|
||||||
|
|
Loading…
Reference in New Issue