default grails 4 app has unique-names twice in application.yml

Viewed 59

Why does a default Grails 4 application including Grails 4.0.12 have two entries in the default generated application.xml reference the unique-names attributes. We got this section near the top of the application.xml:

spring:
    jmx:
        unique-names: true
    main:
        banner-mode: "off"

and a second one that seem deprecated:

management:
    endpoints:
        jmx:
            unique-names: true

Should this second one be deleted?

1 Answers

Yes, the second should be deleted. The Grails default configuration file (application.yml) is outdated and we are planning to clean it in the upcoming releases.

Meanwhile, I think this should be an issue at Grails Core. Also, would you be interested to send a pull-request at github.com/grails-profiles/base to remove the second value.

Related