https://kotlinlang.org logo
Title
z

Zac Sweers

10/12/2021, 12:30 AM
I noticed that kapt is set up to depend on KSP. In all our cases though, they have no dependencies. Is there a way to break this dependency so they can work in parallel?
example
t

Ting-Yuan Huang

10/12/2021, 5:12 PM
I can't find where/how ksp introduces this dependency after reviewing ksp's implementation. Could you share a test case?
z

Zac Sweers

10/13/2021, 3:37 PM
Let me see if I can repro in a public project
Sorry for the delay, here is a repro: https://github.com/ZacSweers/CatchUp/pull/275 Running this will show kapt depending on KSP
./gradlew :services:medium:kaptReleaseKotlin --dry-run
:services:medium:compileReleaseAidl SKIPPED
:services:medium:compileReleaseKotlinCheckIncrementalCompilationAnvil SKIPPED
:services:medium:dataBindingMergeDependencyArtifactsRelease SKIPPED
:services:medium:dataBindingMergeGenClassesRelease SKIPPED
:services:medium:dataBindingGenBaseClassesRelease SKIPPED
:services:medium:kspReleaseKotlin SKIPPED
:services:medium:kaptGenerateStubsReleaseKotlin SKIPPED
:services:medium:kaptReleaseKotlin SKIPPED