Open mockitoguy opened 7 years ago
thx for reporting this one! I also had the same problems while testing locally.
Problem 1 can be solved in different ways.
The easiest solution would be to just delete the directory in the TaskAction
of CloneGitRepositoryTask
. That's not great but it will work.
The 2nd solution would be to have a look at the status of the directory/repo and just do a pull if it is not modified locally.
Problem 2 seems to be solved by moving upgrade-downstream to the subproject (because it is a groovy/java project and therefore has a clean task).
It should be fixed while doing #435
Problem 1
When I ran upgradeDownstream twice I got an error. Let's make the task work gracefully if executed few times. This is especially useful if the first execution failed, we are retrying.
Problem 2
I've tried to work around by running "clean" task but I noticed that build dir is not cleaned. Let's make sure that when users run "./gradlew clean" the output generated by Shipkit from previous build is cleared.