I am trying to use maven BOM with gradle 5.1.1 as mentioned below
ext {
set('spring-boot-dependencies.version', '2.1.2.RELEASE')
}
apply plugin: 'java'
group 'com.acme'
version '1.0.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
}
dependencies {
// maven bom
implementation platform("org.springframework.boot:spring-boot-dependencies:${project.'spring-boot-dependencies.version'}")
compileOnly('org.projectlombok:lombok')
annotationProcessor('org.projectlombok:lombok')
}
When I run ./gradlew dependencies --configuration=annotationProcessor
& ./gradlew dependencies --configuration=compileOnly
, I get the following respectively
annotationProcessor - Annotation processors and their dependencies for source set 'main'.
\--- org.projectlombok:lombok FAILED
compileOnly - Compile only dependencies for source set 'main'.
+--- org.projectlombok:lombok FAILED
Strangely, IntelliJ resolves compileOnly
dependencies properly, but not annotationProcessor
I am quite confused as to what is going on. Any help is appreciated