matrei commented on PR #15229:
URL: https://github.com/apache/grails-core/pull/15229#issuecomment-3546391901

   > bonus points if we can get Spring Security in there?
   > 
   > ```groovy
   > 
Class.forName('org.springframework.security.core.SpringSecurityCoreVersion')?.version
   > ```
   
   @codeconsole I'm not sure we should do class loading for optional 
dependencies in the banner. You could add it yourself in your app:
   ```groovy
       static void main(String[] args) {
           new GrailsApp(Application).tap {
               banner = new GrailsBanner() {
                   @Override
                   Map<String, String> createBannerVersions(Environment 
environment) {
                       super.createBannerVersions(environment) +
                           ['Spring Security': 
Class.forName('org.springframework.security.core.SpringSecurityCoreVersion')?.version]
                   }
               }
           }.run()
       }
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to