The GitHub Actions job "CI" on grails-core.git/spike/grails-beans-dsl has 
succeeded.
Run started by GitHub user codeconsole (triggered by codeconsole).

Head commit for run:
9f0b4d5f7b1a263083ba34b63aa08fa1d64a976b / Scott Murphy Heiberg 
<[email protected]>
Use the concise bean forms in the DSL example module

ExampleBeans is the module whose job is to demonstrate the DSL, so it should 
show the
current shapes. fancyGreeter's body was new FancyGreeter() with no parameters, 
which the
bodyless form covers; loudGreeter's was a pass-through of its one parameter, 
which the
empty-body form covers. The three generated @Bean methods are unchanged.

An audit of every bean(...) declaration across the converted plugins found no 
others
eligible: the rest either run more than one statement, use .tap { }, construct 
a different
type than the one declared, or pass an expression such as 
grailsApplication.config rather
than a bare parameter.

The PR description's headline example is updated to match, and its comment now 
says a body
is needed when construction is more than passing the parameters through, rather 
than "when
there is something to say".

Report URL: https://github.com/apache/grails-core/actions/runs/30512491829

With regards,
GitHub Actions via GitBox

Reply via email to