HHH-10077 - Fix SourceSet generation on gradle plugin

(cherry picked from commit c2c69ca62c)
This commit is contained in:
barreiro 2015-08-05 05:40:14 +01:00 committed by Steve Ebersole
parent 64f91f1a15
commit ae6d84b974
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()
);
}