Gradle: how to clone a git repo in a task?

后端 未结 5 1577
自闭症患者
自闭症患者 2020-12-08 15:08

Suppose I have a gradle build script and want to write a task to clone a remote git repository. How do I do that?

5条回答
  •  心在旅途
    2020-12-08 15:46

    The aforementioned Gradle-git plugin seems to have moved on from providing straightforward "clone this repo to that directory" functionality, so I wrote a simple task that does just this:

    https://github.com/palominolabs/gradle-git-clone-task

提交回复
热议问题