sanggggg
04/27/2023, 3:56 AMdetektMain
task should dependsOn some tasks like compileKotlin
to leverage already compiled results.
But in source code, detektMain
do not depends on any task regarding kotlin compiler.
Is this intented behavior? then how detekt gradle plugin can get compiled kotlin result?gammax
04/27/2023, 10:31 AMkotlin-compiler-embeddable
to run a compilation inside detekt.
What you’re looking for is the detekt compiler plugin which will run during the compileKotlin
task.sanggggg
04/28/2023, 7:01 AMcompileKotlin
to guarantee the existence of build-time generated kotlin files (like grpc stubs) is recommended usage?
If this recommended, what do you think about adding explicit dependency to compileKotlin
on detekt gradle tasks with type resolution?Atul Gupta
04/28/2023, 8:20 AM