With Gradle 4.5 and earlier, the dependency should be declared in the compileOnly
configuration, as shown in the following example:
dependencies { compileOnly "org.springframework.boot:spring-boot-configuration-processor" }
With Gradle 4.6 and later, the dependency should be declared in the annotationProcessor
configuration, as shown in the following example:
dependencies { annotationProcessor "org.springframework.boot:spring-boot-configuration-processor" }