Hi all,

I have a build.gradle file where I have the version of my project within a
variable: version = '1.1'.
And I also have a source file with a method returning the version, say
something like String getVersion() { '1.1' }.

I'd like to know what's the easiest way to factor that version number, for
example in some build.properties file, and have gradle taking care of
replacing some token (like the Ant token replace mechanism) in my source
file, and I could reference that properties file from my build file as well.

Thanks for your help.

-- 
Guillaume Laforge
Groovy Project Manager
Head of Groovy Development at SpringSource
http://www.springsource.com/g2one

Twitter: @glaforge
Google+: http://gplus.to/glaforge

Reply via email to