Hi, I’m trying to define all my dependencies in a ...
# gradle
b
Hi, I’m trying to define all my dependencies in a BoM platform module so the other modules in my multi-module project can use the same versions. All works fine except the
kapt
dependencies. In those I get this error:
Copy code
Could not determine the dependencies of task ':app:kaptDebugKotlin'.
> Could not resolve all task dependencies for configuration ':app:kapt'.
   > Could not find com.google.dagger:dagger-compiler:.
     Required by:
         project :app
The platform (bom) module:
Copy code
plugins {
  id 'java-platform'
}

dependencies {
  constraints {
    api 'com.google.dagger:dagger:2.25.2'
    api 'com.google.dagger:dagger-compiler:2.25.2'
  }
}
The app dependency declaration:
Copy code
dependencies {
  implementation platform(project(':bom'))
  implementation 'com.google.dagger:dagger'
  kapt 'com.google.dagger:dagger-compiler'
  // ...
}
I’m getting the same error if I use
annotationProcessor
. If I set the version like
kapt 'com.google.dagger:dagger-compiler:2.25.2'
all works. Any idea?
No, I have the plugin. if I change
kapt 'com.google.dagger:dagger-compiler'
to
kapt 'com.google.dagger:dagger-compiler:2.25.2'
all works.
l
apologies, I missed that last part.
👍 1