I'm trying to add the svn revision to my app.version
without requiring ant or some other similar external tool. It looks like I might be able to hook into _Events.groovy
to this, but the documentation is relatively sparse.
Anyone know how to do this?
Grails 3.x, in build.gradle, add svn revision to app version:
This link from the Grails nabble mailing list has the solution you're looking for. Also putting the code here for completeness:
In
scripts/_Events.groovy