gradle-retrolambda icon indicating copy to clipboard operation
gradle-retrolambda copied to clipboard

include/exclude configuration doesn't apply

Open spleenjack opened this issue 8 years ago • 2 comments

retrolambda plugin 3.7 ignores the include/exclude configuration setting right now and transforms the whole project's code.

Some context: the new gradle plugin 3.x with desugaring cannot desugar the library projects actually, here is an issue about that: https://issuetracker.google.com/issues/67452341

So, we would like to build two different flavors in the future, the first flavor with retrolambda and with disabled desugaring, and the second flavor without retrolambda and with enabled desugaring. We asked to add the feature to enable/disable desaguring per flavor, since now this is possible only per project manner.

But this is useless if we can't use the feature to include/exclude retrolambda for specified variants.

Can you fix this?

spleenjack avatar Oct 09 '17 14:10 spleenjack

I think it stopped working after switching to the transform api. I was actually considering taking the feature out since it seemed nobody was using it. Shouldn't be too hard to fix, the transform needs to check if the variant is disabled and just copy all the files over instead of running retrolambda.

evant avatar Oct 10 '17 13:10 evant

@evant Any updates on this?

mmitic-lotusflare avatar Mar 16 '18 17:03 mmitic-lotusflare