mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-04 20:45:52 +01:00
Add tasks to modify project version
This commit is contained in:
committed by
René Pfeuffer
parent
7fd6b62b73
commit
d2220af840
@@ -170,7 +170,20 @@ task cleanUpAfterPublishing {
|
||||
}
|
||||
|
||||
task setVersion(type: YarnTask) {
|
||||
args = ['run', 'set-version', project.version]
|
||||
doFirst {
|
||||
if (!project.hasProperty('newVersion')) {
|
||||
throw new GradleException('newVersion properties is required, specify with -PnewVersion=x.y.z')
|
||||
}
|
||||
println "set ui package modules to new version ${project.property('newVersion')}"
|
||||
}
|
||||
if (project.hasProperty('newVersion')) {
|
||||
args = ['run', 'set-version', project.property('newVersion')]
|
||||
}
|
||||
dependsOn('yarn_install')
|
||||
}
|
||||
|
||||
task setVersionToNextSnapshot(type: YarnTask) {
|
||||
args = ['run', 'set-version', nextSnapshotVersion]
|
||||
dependsOn('yarn_install')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user