Upgrading from java 10 to java 11 and gradle 4.10 to gradle. 5.2: "Variable not initialized in the default constructor"

Gradle 5 release has new annotationProcessor() configuration for dependencies (lombok issue)

Change your build.gradle as follows:

annotationProcessor("org.projectlombok:lombok:1.18.6")
compileOnly("org.projectlombok:lombok:1.18.6")

Or use recommended plugin - https://plugins.gradle.org/plugin/io.freefair.lombok

plugins {
  id "io.freefair.lombok" version "3.1.0"
}

In gradle 5, you need to list annotation processors separately. Maybe that's the problem?

An example gradle build can be found here:

https://projectlombok.org/setup/gradle