compileOptions is for the Java compiler (and maybe...
# gradle
d
compileOptions is for the Java compiler (and maybe R8 too?), kotlinOptions is for the Kotlin compiler. AFAIK for Java version you always want both