Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit a368e42

Browse files
authored
Merge pull request #379 from grails/methodInvokingFactoryBean
Update HibernateDatastoreSpringInitializer
2 parents 72b6b74 + 1198bc0 commit a368e42

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

build.gradle

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ if (isReleaseVersion) {
5151
}
5252
}
5353

54-
subprojects { project ->
54+
subprojects { subproject ->
5555

5656
repositories {
5757
maven { url "https://repo.grails.org/grails/core" }
@@ -70,17 +70,18 @@ subprojects { project ->
7070
}
7171

7272
ext {
73-
isExample = project.name.startsWith('example')
74-
isPluginProject = project.name.endsWith("-plugin") && (project.name.startsWith("grails") || project.name.startsWith("rx-"))
75-
isGrails3PluginProject = project.name.endsWith("-plugin")
73+
isExample = subproject.name.startsWith('example')
74+
isPluginProject = subproject.name.endsWith("-plugin") && (subproject.name.startsWith("grails") || subproject.name.startsWith("rx-"))
75+
isGrails3PluginProject = subproject.name.endsWith("-plugin")
7676
}
7777

7878
if(isExample) {
7979
apply plugin: "groovy"
8080

8181
ext['h2.version'] = h2Version
82+
ext['gorm.version'] = gormVersion
8283

83-
if(project.name.startsWith("examples-grails")) {
84+
if(subproject.name.startsWith("examples-grails")) {
8485
apply plugin:"org.grails.grails-web"
8586
apply plugin:"org.grails.grails-gsp"
8687
}
@@ -105,7 +106,7 @@ subprojects { project ->
105106
}
106107
}
107108
}
108-
boolean usesGeb = project.name.contains('examples-grails')
109+
boolean usesGeb = subproject.name.contains('examples-grails')
109110
if (usesGeb) {
110111
apply plugin:"com.energizedwork.webdriver-binaries"
111112
}
@@ -181,14 +182,14 @@ subprojects { project ->
181182

182183
if(isPluginProject) {
183184
group "org.grails.plugins"
184-
version project.rootProject.version - '.RELEASE'
185+
version project.version - '.RELEASE'
185186
}
186187
else {
187188
group "org.grails"
188-
version project.rootProject.version
189+
version project.version
189190
}
190191

191-
if(project.name == 'docs') {
192+
if(subproject.name == 'docs') {
192193
return
193194
}
194195

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ assetPipelineVersion=3.3.3
22
chromeDriverVersion=2.44
33
gebVersion=2.3
44
geckodriverVersion=0.23.0
5-
gormVersion=7.1.0.RC3
5+
gormVersion=7.1.0-SNAPSHOT
66
grailsGradlePluginVersion=5.0.0-RC3
77
groovyVersion=3.0.7
88
h2Version=1.4.200

grails-plugin/src/main/groovy/grails/orm/bootstrap/HibernateDatastoreSpringInitializer.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class HibernateDatastoreSpringInitializer extends AbstractDatastoreInitializer {
168168

169169
loadDataServices(null)
170170
.each {serviceName, serviceClass->
171-
"$serviceName"(DatastoreServiceMethodInvokingFactoryBean) {
171+
"$serviceName"(DatastoreServiceMethodInvokingFactoryBean, serviceClass) {
172172
targetObject = ref("hibernateDatastore")
173173
targetMethod = 'getService'
174174
arguments = [serviceClass]

0 commit comments

Comments
 (0)