From faf0aa0ec0bc676a365acdd449c501aa76c33d40 Mon Sep 17 00:00:00 2001 From: Petros Paraskevopoulos Date: Fri, 5 Jul 2024 15:54:28 +0300 Subject: [PATCH] Build: Update dagger to 2.46.1 This change is necessary because otherwise the build fails with the below exception: ------------------------------------------------------------------------ > Task :mediapicker:kaptDebugKotlin FAILED Annotation processors discovery from compile classpath is deprecated. Set 'kapt.include.compile.classpath=false' to disable discovery. Run the build with '--info' for more details. FAILURE: Build completed with 2 failures. 1: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':mediapicker:source-gif:kaptDebugKotlin'. > A failure occurred while executing org.jetbrains.kotlin.gradle .internal.KaptWithoutKotlincTask$KaptExecutionWorkAction > java.lang.reflect.InvocationTargetException (no error message) ------------------------------------------------------------------------ FYI: This Dagger update is relatively safe as it is only about couple of bug fixes: - [2.46]: https://github.com/google/dagger/releases/tag/dagger-2.46 - Fixed #3701 and #3838. Updated Dagger to kotlinx metadata 0.6.0. (7cf53031) - [2.46.1]: https://github.com/google/dagger/releases/tag/dagger-2.46.1 - Fixed #3701: Shade kotlinx metadata in Dagger's artifacts to prevent upstream dependency issues. (d593e01) --- settings.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings.gradle b/settings.gradle index 0684598..13c1eac 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,6 +1,6 @@ pluginManagement { gradle.ext.kotlinVersion = '1.9.22' - gradle.ext.daggerVersion = '2.45' + gradle.ext.daggerVersion = '2.46.1' gradle.ext.agpVersion = '8.1.0' gradle.ext.detektVersion = '1.19.0' gradle.ext.automatticPublishToS3Version = '0.8.0'