@@ -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
0 commit comments