我的build.gradle:
processResources {
filesMatching('application-bootrun.properties') {
expand(project.properties)
}
}
allprojects {
...
version = '0.3.0'
...
}
我的application-bootrun.properties: ...
info.build.version=${version}
当我访问/ info执行器端点时,我得到:
"build": {
"version": "${version}"
},
如何将“0.3.0”作为“版本”?