I'm trying to migrate google appengine from V1 To V2 as per tutorialo:
https://cloud.google.com/endpoints/docs/frameworks/legacy/v1/java/migratingand I'm getting the following error:
Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor. Please add them to the annotationProcessor configuration. - appengine-api-1.0-sdk-1.9.59.jar (
If I add:
annotationProcessor 'com.google.appengine:appengine-api-1.0-sdk:1.9.59' in my build.gradle file, I got a different error:
Error:(58, 0) Could not find method annotationProcessor() for arguments [com.google.appengine:appengine-api-1.0-sdk:1.9.59]
Follows how my dependencies build.gradle file is:
dependencies {
providedCompile group: 'javax.servlet', name: 'servlet-api', version:'2.5'
compile 'jstl:jstl:1.2'
compile group: 'javax.inject', name: 'javax.inject', version: '1'
compile 'com.google.appengine:appengine-api-1.0-sdk:1.9.59'
compile group: 'com.google.endpoints', name: 'endpoints-framework', version: '2.0.8'
}
Have no idea how to fix.