You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@grails.apache.org by "matrei (via GitHub)" <gi...@apache.org> on 2026/10/01 07:12:57 UTC

[PR] Find plugin metadata in the resources directory of the Gradle build in config-report [grails-core]

matrei opened a new pull request, #16450:
URL: https://github.com/apache/grails-core/pull/16450

   ## Description
   
   Follow-up to #16434 (issue #16432). It addresses [the review comment](https://github.com/apache/grails-core/pull/16434#discussion_r4145662074) on that PR. The fix was pushed after the PR had already been merged, so it is not in 8.0.x yet.
   
   #16434 recognises the configuration metadata of a plugin when it is in the same classpath root as the plugin's `META-INF/grails-plugin.xml`. Inside a JAR that is always the case. When a plugin is on the classpath as the output directories of its Gradle build, the descriptor is written to the classes directory (`build/classes/groovy/main`), while a hand-written `src/main/resources/META-INF/spring-configuration-metadata.json` ends up in `build/resources/main`. Its properties were then left out of the report again.
   
   This happens:
   
   - when a plugin project runs `configReport` on itself
   - when plugins are used through the exploded variant (`bootRun`/`console` in development mode, or with `-Pforce.grails.exploded`), which publishes exactly these two directories
   
   When a descriptor's root is a Gradle classes directory, `…/classes/<language>/<sourceSet>/`, the sibling `…/resources/<sourceSet>/` is now also treated as a root of that plugin. Applications are not affected. They have no plugin descriptor, so their resources directory is never paired, and their own typed properties stay under "Other Properties".
   
   The guide paragraph no longer says the metadata must be "in its JAR". It now states that the default Gradle output directories also work. Custom `destinationDirectory`/`destinationDir` locations are not paired.
   
   ### Tests
   
   New test in `ConfigReportCommandSpec`: a plugin with its descriptor in `build/classes/groovy/main` and its metadata in `build/resources/main`, next to an application with the same layout and no descriptor. The plugin's `acme.enabled` is included and the application's `app.greeting` is still left out. The test fails without the change. All 20 tests in `ConfigReportCommandSpec` and `:grails-core:codeStyle` pass.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@grails.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Find plugin metadata in the resources directory of the Gradle build in config-report [grails-core]

Posted by "jdaugherty (via GitHub)" <gi...@apache.org>.
jdaugherty merged PR #16450:
URL: https://github.com/apache/grails-core/pull/16450


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@grails.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Find plugin metadata in the resources directory of the Gradle build in config-report [grails-core]

Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #16450:
URL: https://github.com/apache/grails-core/pull/16450#issuecomment-5927325690

   ## [Codecov](https://app.codecov.io/gh/apache/grails-core/pull/16450?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   :white_check_mark: All modified and coverable lines are covered by tests.
   :white_check_mark: Project coverage is 58.9335%. Comparing base ([`89ec7b8`](https://app.codecov.io/gh/apache/grails-core/commit/89ec7b803fad469bf17dec8e19e8e26ac6ef5240?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`1128a8a`](https://app.codecov.io/gh/apache/grails-core/commit/1128a8a7aeddd443ceee83e32e8441779052a7b1?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   [![Impacted file tree graph](https://app.codecov.io/gh/apache/grails-core/pull/16450/graphs/tree.svg?width=650&height=150&src=pr&token=qJrryhpk7u&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)](https://app.codecov.io/gh/apache/grails-core/pull/16450?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
   
   ```diff
   @@                Coverage Diff                 @@
   ##                8.0.x     #16450        +/-   ##
   ==================================================
   + Coverage     58.9168%   58.9335%   +0.0168%     
   - Complexity      24437      24441         +4     
   ==================================================
     Files            2174       2174                
     Lines          107365     107365                
     Branches        19557      19557                
   ==================================================
   + Hits            63256      63274        +18     
   + Misses          35248      35228        -20     
   - Partials         8861       8863         +2     
   ```
   [see 4 files with indirect coverage changes](https://app.codecov.io/gh/apache/grails-core/pull/16450/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
   </details>
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
   - :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@grails.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org