After update from cucumber v 4.8.0 to 6.8.0, my project fails on build with error "java: cannot find symbol symbol: variable log"
There is no error displayed in java class, annotation @Slf4j is used which is imported from "lombok.extern.slf4j.Slf4j;"
Mvn clean Compile job is finished with success status.
I'm using Intellij Idea v2020.2.3 with Lombok plugin 0.32-2020.2 and Java 8.
checked:
- "Enable annotation processing" checkbox is active
- For Lombok plugin all checkboxes are active
- I have read topic: Building with Lombok's @Slf4j and Intellij: Cannot find symbol log
- And this: Can't compile project when I'm using Lombok under IntelliJ IDEA
- And I have tried this: [BUG] Maven: Java modules wont' build without explicit
After downgrade back to 4.8.0 building is back to success.
dependencies:
<cucumber.version>6.8.0</cucumber.version>
dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.14</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>2.0.0-alpha1</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>2.0.0-alpha1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-1.2-api</artifactId>
<version>2.13.3</version>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java8</artifactId>
<version>${cucumber.version}</version>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>${cucumber.version}</version>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-junit</artifactId>
<version>${cucumber.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-core</artifactId>
<version>${cucumber.version}</version>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>gherkin</artifactId>
<version>15.0.2</version>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-spring</artifactId>
<version>${cucumber.version}</version>
</dependency>