From 1f0806760691ad0eedc9c4a20e39b1d53db8eaff Mon Sep 17 00:00:00 2001 From: Scott Murphy Heiberg Date: Fri, 31 Jul 2026 23:14:48 -0400 Subject: [PATCH] Drop config Grails 8 now supplies itself Grails 8 hard-codes the whole MIME table in MimeType.createDefaults() -- all, atom, css, csv, form, html, js, json, multipartForm, pdf, rss, text, hal and xml, plus application/vnd.api+json -- and merges anything a project declares in grails.mime.types over it, per grails.mime.mergeDefaults. The demo app's block restated those defaults verbatim, so removing it changes nothing. The two logback-spring.xml files go with it. Neither is published -- the plugin jar carries no logback resource -- so they only ever shaped local runs, and what they set up was Spring Boot's own defaults.xml plus a console appender, which Boot installs unprompted. The plugin's copy had also drifted: a duplicated ahr logger and an io.awspring.cloud one for a dependency this project does not have, left over from whatever skeleton it was copied from. One real change: the demo app pinned its root logger to ERROR, and now takes Boot's INFO default, so bootRun is more verbose than it was. --- app/grails-app/conf/application.yml | 32 ------------------- app/grails-app/conf/logback-spring.xml | 39 ----------------------- plugin/grails-app/conf/logback-spring.xml | 34 -------------------- 3 files changed, 105 deletions(-) delete mode 100644 app/grails-app/conf/logback-spring.xml delete mode 100644 plugin/grails-app/conf/logback-spring.xml diff --git a/app/grails-app/conf/application.yml b/app/grails-app/conf/application.yml index 87a9116..a6e5d32 100644 --- a/app/grails-app/conf/application.yml +++ b/app/grails-app/conf/application.yml @@ -4,38 +4,6 @@ info: version: '@info.app.version@' grailsVersion: '@info.app.grailsVersion@' grails: - mime: - disable: - accept: - header: - userAgents: - - Gecko - - WebKit - - Presto - - Trident - types: - all: '*/*' - atom: application/atom+xml - css: text/css - csv: text/csv - form: application/x-www-form-urlencoded - html: - - text/html - - application/xhtml+xml - js: text/javascript - json: - - application/json - - text/json - multipartForm: multipart/form-data - pdf: application/pdf - rss: application/rss+xml - text: text/plain - hal: - - application/hal+json - - application/hal+xml - xml: - - text/xml - - application/xml views: gsp: encoding: UTF-8 diff --git a/app/grails-app/conf/logback-spring.xml b/app/grails-app/conf/logback-spring.xml deleted file mode 100644 index 7096097..0000000 --- a/app/grails-app/conf/logback-spring.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - true - - ${CONSOLE_LOG_THRESHOLD} - - - ${CONSOLE_LOG_PATTERN} - ${CONSOLE_LOG_CHARSET} - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugin/grails-app/conf/logback-spring.xml b/plugin/grails-app/conf/logback-spring.xml deleted file mode 100644 index 3b41fb9..0000000 --- a/plugin/grails-app/conf/logback-spring.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -