-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error getting GitPublishCommit.repoDirectory #60
Comments
You can see the background in this commit. There may be some other ways to do it, but I'd like to keep up no providers and also avoid the logic happening multiple times. |
Hit this again in tests trying to disable all tasks via I see there is a logic error in current implementation. |
Does making it a I basically need three things:
In the current state of providers, setting it at task runtime is the cleanest way for me to handle this, though the current option does have the side effect that the Property's value would be ignored if already set. Thinking about your input/output report use case, you may want to support Property/Providers that aren't set anyway. It doesn't seem invalid for a property to have no value. |
I ran into the same thing today. I put this seemingly innocent code in the the build script and it causes the issue. ['Reset','Push','Commit'].each {
tasks.named("gitPublish${it}") {
enabled = pushDocs
}
} Take the code out and it works. Same thing happens with ['Reset','Push','Commit'].each {
tasks.named("gitPublish${it}") {
onlyIf {pushDocs}
}
} My only workaround is not to call @ajoberstar You might be better off if the project extension creates the GrGit object rather that the task. You can still have it created on demand. It is also better in my experience to use |
I have custom diagnostic task that creates report about inputs and outputs of each task.
Unfortunately, I can't use it with this plugin:
I see that the problem is that grgit value is set during GitPublishReset task execution only:
gradle-git-publish/src/main/java/org/ajoberstar/gradle/git/publish/tasks/GitPublishReset.java
Lines 81 to 82 in b0e47c8
Maybe I don't understand something, but why it is not set just after property creation? It could still be lazy (maybe with additional provider).
The text was updated successfully, but these errors were encountered: