Skip to content

Conversation

@matrei
Copy link
Contributor

@matrei matrei commented Dec 16, 2025

Closes #15286

Remove `META-INF/services/grails.factories` from `grails-web-url-mappings`.
The file explicitly registers `UrlMappingsReportCommand`, but this is
redundant: `GlobalGrailsClassInjectorTransformation` dynamically generates
`META-INF/grails.factories` and automatically registers all
`ApplicationCommand` implementations found in the source tree.
If grails-web-urlmappings is on the build runtime classpath,
its service-loader initialization will pre-register the
`urlMappingsReport` task. This change adds a check to ensure
the task is only registered once.
Use `getOrNull` and filter out null configurations to avoid
potential issues during build classpath generation.
@matrei matrei merged commit 3abe0bd into 7.0.x Dec 17, 2025
35 of 36 checks passed
@matrei matrei deleted the issue-15286 branch December 17, 2025 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

'url-mappings-report' broken

2 participants