Closed
Description
When upgrading to Kotlin 1.8.20 and Kotlin DataFramework 0.10.0(which is compatible with Kotlin 1.8.20 and KSP plugin for Kotlin 1.8.20), my original config does not work.
tasks.named<LintTask>("lintKotlinMain") {
dependsOn("kspKotlin")
exclude("io/etip/**/jooq/**/*.kt") // excludes Jooq generated data classes
exclude("**/*.Generated.kt") // exludes dataframe generated codes
exclude("**/*\$Extensions.kt")
}
tasks.named<FormatTask>("formatKotlinMain") {
dependsOn("kspKotlin")
exclude("io/etip/**/jooq/**/*.kt") // excludes Jooq generated data classes
exclude("**/*.Generated.kt") // exludes dataframe generated codes
exclude("**/*\$Extensions.kt")
}
Now the KSP generated codes(used by DataFramework) is always scanned by lint/format, see Kotlin/dataframe#349 and Kotlin/dataframe#348
Use ./gradlew tasks --all
, it includes two tasks like this:
formatKotlinGeneratedByKspKotlin
formatKotlinGeneratedByKspTestKotlin
But I have tried to configure formatKotlin to skip generated codes for these tasks, it does not work.
Now the problem is kspPlugin
will fail every time see Kotlin/dataframe#349 when running git push
and stop me to commit codes.
Metadata
Metadata
Assignees
Labels
No labels