Make intellij plugin forwards-compatible

Updated to generate classes using the version defined in the build.gradle. This
way, the intellij plugin does not need to be updated every time the gradle
plugin is. Version 1.3.0 of the gradle plugin is still supported, by may be
dropped in a later update.