You can put the domain classes in the JAR and tell Grails that these are your domain classes by adding the Hibernate XML file (in grails-app/conf/hibernate ), which refers to the classes in this JAR. You can use this JAR in any other Java / Groovy application, but obviously they will only have save methods (dynamic crawlers, save() , etc.) when used in a Grails application.
source share