akhikhl / multiproject-git-gradle

Gradle script for multi-project git-based setup, configuration and build
30 stars 12 forks source link

Flag to disable git push to upstream repos #4

Closed kavink closed 10 years ago

kavink commented 10 years ago

It will be nice to have a flag to disable git push to upstream/origin. Or if possible having a dry-run mode will be helpful.

akhikhl commented 10 years ago

Version 1.0.15 introduces two boolean flags: releaseNoCommit and releaseNoPush. Each of them could be defined either in context of multiproject element or in context of project element:

multiproject {
  releaseNoPush = true
  git baseDir: 'upstream_repos', {
    project name: 'project1', releaseNoCommit: true
    project name: 'project3'
    project name: 'project2', dependsOn: [ 'project1', 'project3' ]
  }
}

when releaseNoPush=true, ARF commits release and new versions, but does not push anything upstream.

when releaseNoCommit=true, ARF does not commit nor push release and new versions.

kavink commented 10 years ago

:+1: Thanks will test it.

kavink commented 10 years ago

Is it possible to just call a push task later if everything looks good ? As it was skipped originally ?

akhikhl commented 10 years ago

Yes, multiproject-git-gradle already supports pushing all involved repositories at the same time. Syntax:

gradle gitPush

On Sun, Jul 27, 2014 at 8:48 PM, kavink notifications@github.com wrote:

Is it possible to just call a push task later if everything looks good ? As it was skipped originally ?

— Reply to this email directly or view it on GitHub https://github.com/akhikhl/multiproject-git-gradle/issues/4#issuecomment-50281978 .

kavink commented 10 years ago

Thanks Looks goodl. Closed by : 1870671c09e63b03ea46ceb9b86bdf25d6fc5f8c