Hi, can anyone help me? I try to filter all `com.a...
# gradle
g
Hi, can anyone help me? I try to filter all
com.android.build.gradle.tasks.AndroidJavaCompile
. I add
buildscript
block like this
Copy code
buildscript {
    repositories {
        google()
        jcenter()
    }

    dependencies {
        classpath("com.android.tools.build:gradle:3.5.3")
    }
}
I invoke
tasks.withType<AndroidJavaCompile>().all { println(name) }
and there is no result. If I invoke
tasks.matching { it.name == "compileDebugJavaWithJavac" }.all { println(javaClass) }
, i’ve got
com.android.build.gradle.tasks.AndroidJavaCompile_Decorated
.
m
Do you also apply Android plugin with
Copy code
apply plugin: 'com.android.application'
? or the new way
Copy code
plugins {
    id("com.android.application")
    kotlin("android")
    kotlin("android.extensions")
    kotlin("kapt")
}