well this is an interesting bug… so if you have the jpa module in a library it creates a synthetic noarg constructor, in gradle if your source calls that constructor it will compile… however intellij cowardly refuses to. More I think about it I’m not sure which one is right… I mean technically neither is wrong, so maybe it’s not a bug… though weird that the constructor can be compiled in isolation but not when it’s part of a larger composite build and only in the IDE does it have problems.