You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@grails.apache.org by "jdaugherty (via GitHub)" <gi...@apache.org> on 2026/03/29 19:54:26 UTC

[I] Add gradle tasks to assist in code formatting [grails-core]

jdaugherty opened a new issue, #15535:
URL: https://github.com/apache/grails-core/issues/15535

   ### Issue description
   
   In the weekly 3/18 meeting, we discuss automatic code formatting and how many tools are insufficient with the current project configuration.  It was discovered that intellij has a command line formatter.  The proposal is 2 fold: 
   
   1. add a gradle task that invokes the command line formatter with the associated configuration to format target files
   2. add git pre-hook scripts that one can install to invoke this automatically on changes files


-- 
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.apache.org

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


Re: [I] Add gradle tasks to assist in code formatting [grails-core]

Posted by "jamesfredley (via GitHub)" <gi...@apache.org>.
jamesfredley closed issue #15535: Add gradle tasks to assist in code formatting
URL: https://github.com/apache/grails-core/issues/15535


-- 
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: [I] Add gradle tasks to assist in code formatting [grails-core]

Posted by "sanjana2505006 (via GitHub)" <gi...@apache.org>.
sanjana2505006 commented on issue #15535:
URL: https://github.com/apache/grails-core/issues/15535#issuecomment-4187634386

   Hello @jdaugherty, I've implemented the IntelliJ-based formatting as discussed in the issue. I've added a global formatCode task and a self-installing git hook so we can keep things consistent without much manual effort. Please let me know if you'd like any changes!


-- 
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: [I] Add gradle tasks to assist in code formatting [grails-core]

Posted by "jamesfredley (via GitHub)" <gi...@apache.org>.
jamesfredley commented on issue #15535:
URL: https://github.com/apache/grails-core/issues/15535#issuecomment-5076001568

   Closing as implemented by PR #15555 (`4cc6dded`, June 30, 2026). Grails now provides `formatCode` and optional `installGitHooks` Gradle tasks, and the pre-commit hook formats staged Java and Groovy files. The change shipped in Grails 8.0.0-M2.
   
   <!-- project-487-remaining-15535 -->


-- 
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