HHH-10077 - Fix SourceSet generation on gradle plugin
(cherry picked from commit c2c69ca62c
)
This commit is contained in:
parent
64f91f1a15
commit
ae6d84b974
|
@ -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