I have added new module to project and pasted new sources there.
I have builded application and then start.
I see the following error while starting:
java.lang.IllegalStateException: Failed to introspect bean class [MyClass] for persistence metadata: could not find class that it depends on
MyClass resides in new module.
apply plugin: 'java'