title: Cannot find compileOnly on the newest gradle, Lombok
body: <p>I'm trying to setup Lombok on my android project but it seems that gradle cannot find <strong>compileOnly</strong> method. I don't know why it misbehaves like that. Also, I don't want to use lombok-gradle plugin as I don't like using random stuff that I don't understand on my project. </p>
  
  <p>This is the error:</p>
  
  <pre><code>Error:(67, 0) Gradle DSL method not found: 'compileOnly()'
  Possible causes:
  The project 'Experiment1' may be using a version of the Android Gradle plug-in 
  that does not contain the method (e.g. 'testCompile' was added in 1.1.0).
  - Upgrade plugin to version 2.3.3 and sync projectThe project 'Experiment1' may be 
  using a version of Gradle that does not contain the method.
  - Open Gradle wrapper fileThe build file may be missing a Gradle plugin.
  - Apply Gradle plugin
  </code></pre>
  
  <p>My config files, app module gradle:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  apply plugin: 'me.tatarka.retrolambda'
  
  android {
      compileSdkVersion 25
      buildToolsVersion "26.0.0"
      defaultConfig {
          applicationId "com.ltx.Experiment1"
          minSdkVersion 21
          targetSdkVersion 25
          versionCode 1
          versionName "1.0"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  
      configurations.all { //Solves JSR error
          resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
  
      //--- Test Libraries ---//
      androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
          exclude group: 'com.android.support', module: 'support-annotations'
      })
      testCompile 'junit:junit:4.12'
      testCompile 'org.mockito:mockito-core:2.8.47'
  
      //--- Code Libraries ---//
      compile 'com.android.support:appcompat-v7:25.3.1'
      compile 'com.android.support:recyclerview-v7:25.3.1'
      compile 'com.android.support.constraint:constraint-layout:1.0.2'
  
      compile 'com.google.code.gson:gson:2.8.1'
  
      compile 'com.squareup.retrofit2:retrofit:2.3.0'
      compile 'com.squareup.retrofit2:converter-gson:2.3.0'
      compile 'com.squareup.okhttp3:okhttp:3.8.1'
      compile 'com.squareup.okhttp3:logging-interceptor:3.8.1'
  
      compileOnly "org.projectlombok:lombok:1.16.18"
  }
  </code></pre>
  
  <p>Project gradle:</p>
  
  <pre><code>buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:2.3.3'
          classpath 'me.tatarka:gradle-retrolambda:3.2.5'
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          jcenter()
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <p>Wrapper:</p>
  
  <pre><code>distributionBase=GRADLE_USER_HOME
  distributionPath=wrapper/dists
  zipStoreBase=GRADLE_USER_HOME
  zipStorePath=wrapper/dists
  distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
  </code></pre>