Ktorfit version
2.7.1
What happened and how can we reproduce this issue?
Hello.
When building release variants with Kotlin 2.3.0 and ktorfit 2.7.1, I'm getting the following error.
The build works fine during debugging, but the error occurs when building in release mode.
Below is the full build error.
`
Some problems were found with the configuration of task ':data:product:extractAndroidMainAnnotations' (type 'ExtractAnnotations').
-
Gradle detected a problem with the following location: '/Users/hsbaewa/WorkspaceForAndroidStudio/xkeepermanagerkmp/data/product/build/generated/ksp/android/androidMain/java'.
Reason: Task ':data:product:extractAndroidMainAnnotations' uses this output of task ':data:product:kspAndroidMain' 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:
- Declare task ':data:product:kspAndroidMain' as an input of ':data:product:extractAndroidMainAnnotations'.
- Declare an explicit dependency on ':data:product:kspAndroidMain' from ':data:product:extractAndroidMainAnnotations' using Task#dependsOn.
- Declare an explicit dependency on ':data:product:kspAndroidMain' from ':data:product:extractAndroidMainAnnotations' using Task#mustRunAfter.
For more information, please refer to https://docs.gradle.org/8.13/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
-
Gradle detected a problem with the following location: '/Users/hsbaewa/WorkspaceForAndroidStudio/xkeepermanagerkmp/data/product/build/generated/ksp/metadata/commonMain/java'.
Reason: Task ':data:product:extractAndroidMainAnnotations' uses this output of task ':data:product:kspCommonMainKotlinMetadata' 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:
- Declare task ':data:product:kspCommonMainKotlinMetadata' as an input of ':data:product:extractAndroidMainAnnotations'.
- Declare an explicit dependency on ':data:product:kspCommonMainKotlinMetadata' from ':data:product:extractAndroidMainAnnotations' using Task#dependsOn.
- Declare an explicit dependency on ':data:product:kspCommonMainKotlinMetadata' from ':data:product:extractAndroidMainAnnotations' using Task#mustRunAfter.
For more information, please refer to https://docs.gradle.org/8.13/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.
Explain with AI
`
What did you expect to happen?
The build should occur normally.
Is there anything else we need to know about?
No response
Ktorfit version
2.7.1
What happened and how can we reproduce this issue?
Hello.
When building release variants with Kotlin 2.3.0 and ktorfit 2.7.1, I'm getting the following error.
The build works fine during debugging, but the error occurs when building in release mode.
Below is the full build error.
`
Some problems were found with the configuration of task ':data:product:extractAndroidMainAnnotations' (type 'ExtractAnnotations').
Gradle detected a problem with the following location: '/Users/hsbaewa/WorkspaceForAndroidStudio/xkeepermanagerkmp/data/product/build/generated/ksp/android/androidMain/java'.
Reason: Task ':data:product:extractAndroidMainAnnotations' uses this output of task ':data:product:kspAndroidMain' 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:
For more information, please refer to https://docs.gradle.org/8.13/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
Gradle detected a problem with the following location: '/Users/hsbaewa/WorkspaceForAndroidStudio/xkeepermanagerkmp/data/product/build/generated/ksp/metadata/commonMain/java'.
Reason: Task ':data:product:extractAndroidMainAnnotations' uses this output of task ':data:product:kspCommonMainKotlinMetadata' 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:
For more information, please refer to https://docs.gradle.org/8.13/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
What did you expect to happen?
The build should occur normally.
Is there anything else we need to know about?
No response