Skip to content

Commit ae6d84b

Browse files
barreirosebersole
authored andcommitted
HHH-10077 - Fix SourceSet generation on gradle plugin
(cherry picked from commit c2c69ca)
1 parent 64f91f1 commit ae6d84b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tooling/hibernate-gradle-plugin/src/main/groovy/org/hibernate/orm/tooling/gradle/HibernateExtension.groovy

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ class HibernateExtension {
2323
/**
2424
* The source sets that hold persistent model. Default is project.sourceSets.main
2525
*/
26-
def SourceSet[] sourceSets
26+
def SourceSet[] sourceSets
27+
2728
/**
2829
* Configuration for bytecode enhancement. Private; see instead {@link #enhance(groovy.lang.Closure)}
2930
*/
@@ -43,7 +44,7 @@ class HibernateExtension {
4344
if ( sourceSets == null ) {
4445
sourceSets = []
4546
}
46-
sourceSets += sourceSets
47+
sourceSets += sourceSet
4748
}
4849

4950
void enhance(Closure closure) {

tooling/hibernate-gradle-plugin/src/main/groovy/org/hibernate/orm/tooling/gradle/HibernatePlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private ClassLoader toClassLoader(FileCollection runtimeClasspath) {
159159

160160
return new URLClassLoader(
161161
urls.toArray( new URL[urls.size()] ),
162-
ClassLoader.getSystemClassLoader().getParent()
162+
Enhancer.class.getClassLoader()
163163
);
164164
}
165165

0 commit comments

Comments
 (0)