use gradle-plugin plugin
read compileClasspath lazily, fixes #19