grails-core icon indicating copy to clipboard operation
grails-core copied to clipboard

Grails core plugin load domainClass plugin duplicated

Open rainboyan opened this issue 2 years ago • 2 comments

Grails core why load domainClass plugin? If a grails app not have Domain and GORM layer, it will be also OK. So, I submit a PR to remove it, to keep Grails Clean and flexible.

Like this demo, https://github.com/rainboyan/grails-app-without-grails-demo

In grails-core module,

<plugin name='core'>
  <type>org.grails.plugins.CoreGrailsPlugin</type>
  <type>org.grails.plugins.domain.DomainClassGrailsPlugin</type>
</plugin>

In grails-plugin-domain-class module,

<plugin name='domainClass'>
  <type>org.grails.plugins.domain.DomainClassGrailsPlugin</type>
</plugin>

rainboyan avatar Mar 26 '22 12:03 rainboyan

@rainboyan When I attempt to run the project in the linked repo I am getting an exception on startup.

javax.validation.NoProviderFoundException: Unable to create a Configuration, because no Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath. Are you seeing same?

Thank you for your feedback!

osscontributor avatar Jun 23 '22 17:06 osscontributor

@jeffbrown thank you for your reply. There are three errors when running app, you can search DomainClassGrailsPlugin in the startup-log.txt.

Micronaut: Error establishing whether path is a directory: /application.yml Grails: java.lang.ClassNotFoundException: org.grails.plugins.domain.DomainClassGrailsPlugin Spring Boot: no Bean Validation provider

rainboyan avatar Jun 23 '22 18:06 rainboyan