gradle: авто-версионирование с параметром
This commit is contained in:
@@ -18,10 +18,15 @@ class IncrementVersion extends DefaultTask {
|
|||||||
|
|
||||||
@TaskAction
|
@TaskAction
|
||||||
def incrementVersion() {
|
def incrementVersion() {
|
||||||
String nextVersion = nextVersion()
|
String nextVer
|
||||||
|
if (project.hasProperty('nextVersion')) {
|
||||||
|
nextVer = project.property('nextVersion')
|
||||||
|
} else {
|
||||||
|
nextVer = nextVersion()
|
||||||
|
}
|
||||||
|
|
||||||
incrementReadmeVersion(nextVersion)
|
incrementReadmeVersion(nextVer)
|
||||||
incrementGradlePropsVersion(nextVersion)
|
incrementGradlePropsVersion(nextVer)
|
||||||
}
|
}
|
||||||
|
|
||||||
private void incrementReadmeVersion(String nextVersion) {
|
private void incrementReadmeVersion(String nextVersion) {
|
||||||
|
|||||||
Reference in New Issue
Block a user