we're getting this when bumping to Apollo 4.1.0: ...
# apollo-kotlin
f
we're getting this when bumping to Apollo 4.1.0:
Copy code
> Task :lib:generateServiceApolloCodegenSchema FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':lib:generateServiceApolloCodegenSchema'.
> Could not resolve all files for configuration ':lib:apolloServiceCompiler'.
   > Resolved 'org.jetbrains.kotlin:kotlin-reflect:2.0.10' which is not part of the dependency lock state
we lock versions with Gradle, and my current suspicion is that this is somehow connected to kotlin poet's bump — I tried setting
kotlin-reflect
as an explicit dependency in our project and downgrading to kotlin 2.0.10 (we're on 2.0.21) but nothing seems to make a difference and we always end up with this error (re-locking all configs also doesn't help), any idea on what might be causing this?
m
We've bumped into this internally at Apollo as well and the conclusion was it's a Gradle bug: https://github.com/gradle/gradle/issues/31158
In the meantime, you can safely exclude
kotlin-reflect
:
Copy code
configurations.getByName("apolloServiceCompiler").exclude(module = "kotlin-reflect")
f
thank you!
m
Sure thing! If you get a chance to put a 👍 on that issue so that we can ultimately remove all the workaraounds, it'd be grand.
1