bouquet
bouquet copied to clipboard
Gradle sync fails if Bouquet is used in library project
I tried including this in my library project. I get this error in gradle sync
Transforms with scopes '[SUB_PROJECTS, EXTERNAL_LIBRARIES]' cannot be applied to library projects.
I don't understand anything about transforms with scopes, but there is code elsewhere seems to be written with this problem in mind:
https://github.com/seiginonakama/BlockCanaryEx/blob/3eb6455f5c2cef2eca5acfe6cd07635e2b7b5426/BlockCanaryExPlugin/src/main/groovy/com/letv/sarrsdesktop/blockcanaryex/BlockCanaryExPlugin.groovy#L73
Also check frodo2 plugin which has code for app project variant and library project variant
https://github.com/android10/frodo2/blob/52bb57303d5d672d9c5c6fafded1cbae873cd225/frodo2-plugin/src/main/groovy/com/fernandocejas/frodo2/plugin/config/AndroidBuild.groovy#L61
+1