corrected case-sensitivity typo in gradle build file. Added type reference to entity stubs for compatibility with different java versions