Added compiler heap size configuration to the gradle/idea.gradle so that the build just works when imported into IDE.
Simplified the incremental compilation initializer a bit.
Tweaked the sample for the maven publication. Reordered things in the build.gradle so that the snippet is more complete and contains declaration of local variables 'installer' and 'deployer'.