stevedlawrence commented on issue #146: URL: https://github.com/apache/daffodil-sbt/issues/146#issuecomment-3670327511
Trying to find precedence for a syntax to use, it looks enriching a `ModuleID` with things like the `daffodilBin()` or `daffodilPlugin()` functions is actually fairly common. This github search finds a bunch of sbt related projects that implicitly enrich a ModuleId to add new functions: https://github.com/search?q=%2Fimplicit%20class.*ModuleID%2F&type=code Some are internal, but a number or plugins that do something very similar. For example, here's an sbt-protobuf plugin that does basically the same thing as what daffodilBin/Plugin would do: https://github.com/thesamet/sbt-protoc/blob/master/src/main/scala/sbtprotoc/ProtocPlugin.scala#L115-L132 Also, SBT has "extra" things it adds to ModuleID in a similar way: https://github.com/sbt/sbt/blob/develop/lm-core/src/main/scala/sbt/librarymanagement/ModuleIDExtra.scala So I think the `daffodilBin` and `daffodilPlugin` enrichments are probably the right approach. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
