@CompileStatic // if commen this line then build is OK class MyBean { … }
My build.gradle
apply plugin: ‘java’ apply plugin: ‘groovy’ apply plugin: ‘eclipse’ … repositories {
mavenCentral()
mavenRepo url: ‘http://maven.springframework.org/milestone’ }
dependencies {
groovy ‘org.codehaus.groovy:groovy:2.0.0-rc-1’ }