grails-core
grails-core copied to clipboard
Grails core plugin load domainClass plugin duplicated
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 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!
@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