If you get that exception/warning below, when you're using Gradle 4.9, downgrade to Gradle 4.8.
warning: lombok.javac.apt.LombokProcessor could not be initialized. Lombok will not run during this compilation: java.lang.ClassCastException: org.gradle.api.internal.tasks.compile.processing.IncrementalFiler cannot be cast to jdk.compiler/com.sun.tools.javac.processing.JavacFiler
lombok.javac.apt.LombokProcessor