Gradle + Immutables + Eclipse

There is some documentation about IDE integration directly on Immutable web. Unfortunately none of proposed approaches works.

Fortunately there is Gradle plugin gradle-processors. Usage is deadly simple:

plugins { 
    id 'org.inferred.processors' version '1.2.3' 
} 

dependencies { 
    processor group: 'org.immutables', name: 'value', version: '2.2.6' 
}

(Please not usage of processor instead of compile in dependencies)

That’s it! Just do gradle eclipse and restart Eclipse.

Tags:  Gradle  Immutables  Eclipse  Java