Skip to content
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

Change directory output #231

Open
dmondon-accor opened this issue Jul 6, 2023 · 2 comments
Open

Change directory output #231

dmondon-accor opened this issue Jul 6, 2023 · 2 comments

Comments

@dmondon-accor
Copy link

Hi!
Is it possible to change the directory output to save in another directory than /build?
Thanks

@vanniktech
Copy link
Owner

Nope it isn't. Why would you want to change it? It's quite common to place reports there.

@jonapoul
Copy link
Contributor

jonapoul commented Feb 3, 2024

For what it's worth, I was looking to do the same thing. Reason being that I want to be able to check the dotfile and PNG into git and easily reference in readmes, etc. I know I can use gitignore for that, but it's a bit ugly.

I managed to get it working by registering my own instance of ProjectDependencyGraphGeneratorTask without using the plugin's extension, like:

val generator = DependencyGraphGeneratorExtension.ProjectGenerator(
  // your config here
)

project.tasks.register("generateReadmeDiagram", ProjectDependencyGraphGeneratorTask::class.java) {
  projectGenerator = generator
  outputDirectory = File(project.projectDir, "docs") // change this!
}

then running gradle generateReadmeDiagram.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants