Hi,
I want to apply a different plugin depending on which JDK version is being used. More specifically:
if (JavaVersion.current() == JavaVersion.VERSION_1_8) {
apply plugin: ‘net.ltgt.errorprone’
} else {
apply plugin: ‘net.ltgt.errorprone-javacplugin’
}
This works fine, but now I’d like to get this working in the new plugins{} structure. I can’t figure out how to use any logic there. Would that be possible?