HHH-10077 - Fix SourceSet generation on gradle plugin
This commit is contained in:
parent
3689924d74
commit
c2c69ca62c
|
@ -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) {
|
||||
|
|
|
@ -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()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue