HHH-10077 - Fix SourceSet generation on gradle plugin

This commit is contained in:
barreiro 2015-08-05 05:40:14 +01:00 committed by Steve Ebersole
parent 3689924d74
commit c2c69ca62c
2 changed files with 4 additions and 3 deletions

View File

@ -23,7 +23,8 @@ class HibernateExtension {
/**
* The source sets that hold persistent model. Default is project.sourceSets.main
*/
def SourceSet[] sourceSets
def SourceSet[] sourceSets
/**
* Configuration for bytecode enhancement. Private; see instead {@link #enhance(groovy.lang.Closure)}
*/
@ -43,7 +44,7 @@ class HibernateExtension {
if ( sourceSets == null ) {
sourceSets = []
}
sourceSets += sourceSets
sourceSets += sourceSet
}
void enhance(Closure closure) {

View File

@ -159,7 +159,7 @@ public class HibernatePlugin implements Plugin<Project> {
return new URLClassLoader(
urls.toArray( new URL[urls.size()] ),
ClassLoader.getSystemClassLoader().getParent()
Enhancer.class.getClassLoader()
);
}