Skip to content

Commit a0aa928

Browse files
author
graeme
committed
changed to simply delegate to GrailsUtils
git-svn-id: https://svn.codehaus.org/grails/trunk@3088 1cfb16fd-6d17-0410-8ff1-b7e8e1e2867d
1 parent cd28c51 commit a0aa928

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/groovy/org/codehaus/groovy/grails/plugins/support/GrailsPluginUtils.groovy

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,7 @@ class GrailsPluginUtils {
66

77
static grailsVersion = null
88
static getGrailsVersion() {
9-
if(grailsVersion)return grailsVersion
10-
11-
grailsVersion = GrailsUtil.getGrailsVersion()
12-
if(!grailsVersion)return 0.1
13-
if(grailsVersion.endsWith("-SNAPSHOT"))
14-
grailsVersion = grailsVersion[0..-10].toBigDecimal()
15-
else {
16-
grailsVersion.toBigDecimal()
17-
}
18-
return grailsVersion
9+
return GrailsUtil.getGrailsVersion()
1910
}
2011

2112
}

0 commit comments

Comments
 (0)