Closed KaustubhPatange closed 1 year ago
Hello, Same issue for me
Hello,
Same issue for me too. I also had to create an empty test.md
because I didn't change the path. I'd say the plugin could create the file if it does not exist.
Hey there! I just checked your repo here and I was able to get it to work. You can see it working on this PR. Let me know if it still doesn't work.
I'm suspecting my README is using the wrong syntax for groovy. 😅 I'll fix that.
As for the others, can you make sure you're setting the readmePath
correctly?
In groovy it should be:
moduleGraphConfig {
readmePath = "${projectDir}/README.md"
heading = '### Dependency Diagram'
}
My version used readmePath = 'test.md'
to be sure not to have this problem, and I still have no result in the file.
Could it be because the file is to high in the file hierarchy?
@iurysza Did not work for me, left some comments on the PR if you can take a look.
My version used
readmePath = 'test.md'
to be sure not to have this problem, and I still have no result in the file. Could it be because the file is to high in the file hierarchy?
Hey @stephanepechard , can you please run ./gradlew projects
and post the output?
Looks like you need to add the heading in your README for it to work. I expected to see errors after running the command, maybe it should throw an error for us to diagnose.
After adding the header in my README it worked! @KaustubhPatange @stephanepechard @axel-legue
Rather, we should just append the heading to the supplied readme, if it doesn't exist, since I believe that's what most are thinking here.
@emitchel Oh shoot! That must be it. Sorry, I think the docs weren't clear and this UX is pretty bad after all. I'll merge #9 and will include that in the next release.
I'll close it for now. Cheers 🤘
I was trying to add this plugin to my project but it seems to be no luck. The task completes successfully (no error) but nothing is added to the Readme file.
Here's what I've done,
./gradlew createModuleGraph
. The task completes successfully but produces no output i.e no change totest.md
file.Also, I was looking at the source code & it seems there is an additional configuration property
outputFile
but when I set it, it says no such property exists. Seems like the latest version is not published on the gradle plugins portal.