tring resolveVersion() {
if (project.hasProperty('appVersion') && project.property('appVersion')) {
return project.property('appVersion').toString()
}
if (System.getenv('APP_VERSION')) {
return System.getenv('APP_VERSION')
}
return '1.0.0-SNAPSHOT'
}
// Assign globally before tasks are configured
project.version = resolveVersion()
// Force convention plugin overrides to honor resolved version
project.afterEvaluate {
project.version = resolveVersion()
}
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)