Gradle closure hack

2018-05-23 Thread Kenneth Knowles
Getting into the spirit of Groovy/Gradle style, can we make "applyJavaNature" look like these other config blocks? applyJavaNature { // maybe this should be called beamJavaModule errorprone { ... errorprone config } } If I understand correctly, this should also ha

Re: Gradle closure hack

2018-05-24 Thread Lukasz Cwik
This is a good idea because it is in tune with how people familiar with Gradle think. When I started applyJavaNature, I couldn't think of a good way to get certain closures to apply to more then one task. For example, we have a default shading configuration which we want to apply to both the main