Gradle multiproject optional subproject's transitive dependency should be resolved to an existing subproject

后端 未结 2 918
名媛妹妹
名媛妹妹 2020-12-18 17:06

suppose the following project. the master project is a multi-project, however every part of the larger project can be developed individually or mixed in:

/ma         


        
2条回答
  •  旧巷少年郎
    2020-12-18 17:15

    Working with a dynamic subset of a Gradle build is a planned feature. In the meantime, the best solution I've come up with is to introduce a new dependency notation that gets dynamically mapped to either a project dependency or an external dependency. You can find a proof-of-concept here: https://github.com/pniederw/elastic-deps

    PS: Before embarking on implementing this feature on your own, reconsider if you truly need it at this point. You might save yourself some headaches by waiting until it is officially supported.

提交回复
热议问题