I am working on a sbt plugin that generates Scala models given a database using Slick code generator
I would ofcourse want users to override the code generator so my plugin needs to support this:
Anyway I can dynamically load a Scala class given a path to it in the build.sbt plugin keys? For example, in the user's parent build.sbt, she would provide something like codegen.override=com.company.project.CustomCodegenerator
which looks like this
Related to above; the custom codegen may use some other libraries so a simple dynamic class load may not suffice. Anyway an sbt plugin can inherit the dependencies of the project using that plugin?
Here is the full discussion about this: https://github.com/papauschek/play-slick-evolutions-plugin/issues/1