I have a multi-project build, where the root project is a Play Application. I have a custom task in a subproject (which is npm project) which I want to add as a source generator:
sourceGenerators in Assets += uiBuildTask
I have defined uiBuildTask in an AutoPlugin in the subproject, and it's available in the sbt console. I don't know how to add it to the source generators though. Ideally this should happen in the Autoplugin, but I don't know if it's possible to have sbt-web enable for two projects. All my attempts have failed so far, I can't make the root project aware of uiBuildTask and the sub project aware of the sbt-web asset pipeline. What's the best way to solve this problem?
I have a multi-project build, where the root project is a Play Application. I have a custom task in a subproject (which is npm project) which I want to add as a source generator:
I have defined uiBuildTask in an AutoPlugin in the subproject, and it's available in the sbt console. I don't know how to add it to the source generators though. Ideally this should happen in the Autoplugin, but I don't know if it's possible to have
sbt-webenable for two projects. All my attempts have failed so far, I can't make the root project aware ofuiBuildTaskand the sub project aware of thesbt-webasset pipeline. What's the best way to solve this problem?