I’m trying to extend Andrew Oberstar’s git plugin for gradle with a “tag” command. I have written a new DefaultClass to this end, and installed the result[1] in my local maven repository. To my client project, I have added the necessary dependencies.
Now, I declare my task like this
task tag(type:
org.ajoberstar.gradle.git.plugins.GitTag){
message="Tag message"
tagName="tagName"
}
and run the task using “gradlew tag”.
However, all I get for my effort is a build failure: It tells me that “Neither path nor basedir may be null or empty string” and the values of both. It shows that baseDir is set to my working directory, and path is indeed null.
Googling on the problem just led me to bugs long closed, so I am probably missing something. Can you help me out?
Thank you -Urs
[1] If you want to inspect my task, please do so in my pull request to Andrews repository: https://github.com/ajoberstar/gradle-git/pull/1#issuecomment-6949646