Would it make sense for either java_package_configuration to support `plugins?
What am I trying to do?
I have a big monorepo and want to add support for NullAway incrementally and centrally. I was thinking of the following approach:
- Define a
package_group with the packages where NullAway should be enabled.
- Define a
java_package_configuration with the relevant plugin and javacopts. Something like:
java_plugin(name = "nullaway", deps = [ artifact("com.uber.nullaway:nullaway") ])
package_group(name = "nullaway_packages", packages = [ ... ])
java_package_configuration(name = "nullaway_packages_configuration", plugins = [ ":nullaway" ], javacopts = [ "-Xep:NullAway:ERROR", ... ])
- Registering the configuration via toolchain.
Currently I am doing it via another approach (macro) but though this could be a useful feature.
Would it make sense for either
java_package_configurationto support `plugins?What am I trying to do?
I have a big monorepo and want to add support for NullAway incrementally and centrally. I was thinking of the following approach:
package_groupwith the packages where NullAway should be enabled.java_package_configurationwith the relevantpluginandjavacopts. Something like:Currently I am doing it via another approach (macro) but though this could be a useful feature.