I'm testing the latest version 2.0.3 released some...
# ksp
r
I'm testing the latest version 2.0.3 released some minutes ago and see this without any other changes:
Copy code
* What went wrong:
Some problems were found with the configuration of task ':recipes:common:impl:kspDebugKotlinAndroid' (type 'KspAATask').
  - Gradle detected a problem with the following location: '/Users/ralf/Development/app-platform/recipes/common/impl/build/generated/compose/resourceGenerator/kotlin/androidDebugResourceAccessors'.

    Reason: Task ':recipes:common:impl:kspDebugKotlinAndroid' uses this output of task ':recipes:common:impl:generateResourceAccessorsForAndroidDebug' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.

    Possible solutions:
      1. Declare task ':recipes:common:impl:generateResourceAccessorsForAndroidDebug' as an input of ':recipes:common:impl:kspDebugKotlinAndroid'.
      2. Declare an explicit dependency on ':recipes:common:impl:generateResourceAccessorsForAndroidDebug' from ':recipes:common:impl:kspDebugKotlinAndroid' using Task#dependsOn.
      3. Declare an explicit dependency on ':recipes:common:impl:generateResourceAccessorsForAndroidDebug' from ':recipes:common:impl:kspDebugKotlinAndroid' using Task#mustRunAfter.

    For more information, please refer to <https://docs.gradle.org/9.0.0/userguide/validation_problems.html#implicit_dependency> in the Gradle documentation.
Anyone else? This from the changelog makes me suspicious
Migrate KSP off AGP's legacy Variant API #2250
j
Have a couple CI failures that look similar, yes
same 1
r
h
https://github.com/google/ksp/pull/2599 this revert should fix that
Looks like there is a lack of testing on our end as this should have been caught. 🙂
Can you please try 2.2.20-2.0.4-SNAPSHOT from
maven("<https://central.sonatype.com/repository/maven-snapshots/>")
and let us know if you see more problems before we release a hotfix
j
Still broken fro me
Just running a full
./gradlew build
Copy code
* What went wrong:
A problem was found with the configuration of task ':burst-kotlin-plugin:kspKotlin' (type 'KspAATask').
  - Gradle detected a problem with the following location: '/Volumes/dev/cashapp/burst/burst-kotlin-plugin/build/generated/sources/buildConfig/main'.

    Reason: Task ':burst-kotlin-plugin:kspKotlin' uses this output of task ':burst-kotlin-plugin:generateBuildConfig' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.

    Possible solutions:
      1. Declare task ':burst-kotlin-plugin:generateBuildConfig' as an input of ':burst-kotlin-plugin:kspKotlin'.
      2. Declare an explicit dependency on ':burst-kotlin-plugin:generateBuildConfig' from ':burst-kotlin-plugin:kspKotlin' using Task#dependsOn.
      3. Declare an explicit dependency on ':burst-kotlin-plugin:generateBuildConfig' from ':burst-kotlin-plugin:kspKotlin' using Task#mustRunAfter.

    For more information, please refer to <https://docs.gradle.org/9.0.0/userguide/validation_problems.html#implicit_dependency> in the Gradle documentation.
e
My Android project appears to be fine using
2.2.20-2.0.4-SNAPSHOT
(I say appears because it is a sample project, not my actual project, which can't currently use snapshots of KSP because of a bug in a separate plugin)
h
@jw can you try with
--refresh-dependencies
as i am wondering if you ran in just before the new artifacts got published to the repository
j
Yep, all good now!