Replies: 2 comments 21 replies
-
@nnbbz In SBT plugins, there is a concept of scope to distinguish between multi module and multi project. So you have to specify the task in which scope. Because the generated code will be changed which should be known to users. (Although I'm a Scala developer, I'm not sure it's appropriate, so I didn't do that for the plugin). If you think it's necessary to build an issue to track it, I'll consider implementing it. |
Beta Was this translation helpful? Give feedback.
-
@jxnu-liguobin Unfortunately, when I do Caused by: java.lang.Exception: Unable to delete directory Is there anyway for the plugin to not delete the directory and instead just delete/replace the files. Or make that an option? I understand why you would want to delete the directory (to remove old autogenerated classes) |
Beta Was this translation helpful? Give feedback.
-
Hello, thank you providing the sbt plugin for the codegen! I just had a question. Currently, I have to run sbt graphqlCodegen (to autogenerate the pojos) and then run sbt compile to compile the code.
What I want to do is trigger graphqlCodegen automatically when I run sbt compile. I've been trying to get this working in my build.sbt but with no luck (perhaps my syntax is not correct?)
I have the following line in my build.sbt, but it complains that graphqlCodegen is not defined. Can you shed some light on how I can do this?
(compile in Compile) := ((compile in Compile) dependsOn graphqlCodegen).value
I'm new to SBT
Beta Was this translation helpful? Give feedback.
All reactions