-
Notifications
You must be signed in to change notification settings - Fork 11
Support using plugin as settings plugin #234
Copy link
Copy link
Open
Labels
a:enhancementNew feature or requestNew feature or request
Description
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")
}
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
a:enhancementNew feature or requestNew feature or request