compile
method is part of the plugin you've been using (reference).
allprojects {
apply plugin: 'java'
//so that we can use 'compile', 'testCompile' for dependencies
dependencies {
implementation 'org.projectlombok:lombok:1.12.2'
}
}