bernaferrari / GradleKotlinConverter

Convert from Groovy to Kotlin DSL for Gradle, focused on Android.
https://gradle-kotlin-converter.vercel.app
Apache License 2.0
921 stars 61 forks source link

Conversion of compileKotlin is incorrect #64

Open simaotwx opened 1 year ago

simaotwx commented 1 year ago

The code

compileKotlin {
    dependsOn(tasks.getByPath('compileGroovy'))
    classpath += files(compileGroovy.destinationDir)
}

was converted to:

compileKotlin {
    dependsOn tasks.getByPath("compileGroovy")
    classpath(+= files(compileGroovy.destinationDir))
}

which is incorrect.

Expression 'compileKotlin' cannot be invoked as a function. The function 'invoke()' is not found