If a project does not have a buildSrc / build-logic folder, it would be good if global patching rules can be defined without that. For that, this plugin could support to be applied in settings.gradle and then offer the extraJavaModuleInfo {} extension block there.
If that is used, everything configured in the settings extension can be forwarded to the extensions in all subprojects via gradle.lifecycle.beforeProject. In a project, individual details could still be added/overridden.
Note: users can already do this today, but it is kind of ugly:
gradle.lifecycle.beforeProject {
plugins.withId("org.gradlex.extra-java-module-info") {
configure<ExtraJavaModuleInfoPluginExtension> {
module("io.micrometer:micrometer-registry-otlp", "micrometer.registry.otlp")
module("io.opentelemetry.proto:opentelemetry-proto", "io.opentelemetry.proto")
}
}
}
If a project does not have a
buildSrc/build-logicfolder, it would be good if global patching rules can be defined without that. For that, this plugin could support to be applied insettings.gradleand then offer theextraJavaModuleInfo {}extension block there.If that is used, everything configured in the settings extension can be forwarded to the extensions in all subprojects via
gradle.lifecycle.beforeProject. In a project, individual details could still be added/overridden.Note: users can already do this today, but it is kind of ugly: