Skip to content

defining a sourceGenerator from a subproject #178

Description

@roti

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions