Having problems with annotationProcessor

I’m having problems with the annotationProcessor configuration

I’m using a dependency constraints to specify the version of the dependency and then I’m using that dependency without the version as follow:

dependencies {
constraints {
    implementation 'org.projectlombok:lombok:1.18.4'
}

annotationProcessor 'org.projectlombok:lombok'

}

following the recommendations, if gradle 5.1 documentation however I’m getting this error:

Execution failed for task ‘:compileJava’.

Could not resolve all files for configuration ‘:annotationProcessor’.
Could not find org.projectlombok:lombok:.

Any help would be appreciated.

I’m currently using gradle 5.1

Thanks

it is ok I just answered my own question I need to use annotationProcessor in the constrains as well