Using gradle, how to write to a properties file the current git branch so that it gets into the application?
- build current branch "1.0.0"
- write to myModule/git.properties with "version=1.0.0" for the file content
- get tokenised by gradle
- inside myModule/conf/applicationContext.properties "version=@version@" becomes "version=1.0.0" in final properties file.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…