Gradle multiproject define dependency on root project
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'
}
}
If you got the 'java' plugin has been applied, but it is not compatible with the Android plugins error, try this
subprojects {
afterEvaluate {
dependencies {
implementation "YOUR DEPENDENCIES"
}
}
}