How to import domain classes from jar into a Micronaut project?
问题 I have a Micronaut project configured to use GORM and Groovy (1). This project contains lots of domain classes that are working perfectly, persisting data in a MySQL database as expected. Now I wish to make this domain classes common to another Micronaut project (2). I tried building a JAR file containing only the domain package and including it in the project 2 thru build.gradle . The classes are compiled and made accessible in code, and I'm able to call GORM methods like findBy ,