Hi, I'm upgrading to use kotlin 2.0.10 and I found...
# community-support
s
Hi, I'm upgrading to use kotlin 2.0.10 and I found quite some dependency issues related to testFixtures. Not sure if this is a Kotlin issue or Gradle issue. I'm on Gradle 8.10. Thanks!
Copy code
> Configure project :build-logic-commons
WARNING: Unsupported Kotlin plugin version.
The `embedded-kotlin` and `kotlin-dsl` plugins rely on features of Kotlin `1.9.24` that might work differently than in the requested version `2.0.10`.

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':ads-server:compileJava'.
> Could not resolve all dependencies for configuration ':ads-server:compileClasspath'.
   > Could not resolve software.amazon.awssdk:firehose:2.27.4.
     Required by:
         project :ads-server > project :misk-core > project :core:core-event-recording:core-event-recording-api > project :core:vendor:amazon:kinesis-firehose
      > Unable to find a variant providing the requested capability 'software.amazon.awssdk:firehose-test-fixtures':
           - Variant 'compile' provides 'software.amazon.awssdk:firehose:2.27.4'
           - Variant 'enforced-platform-compile' provides 'software.amazon.awssdk:firehose-derived-enforced-platform:2.27.4'
           - Variant 'enforced-platform-runtime' provides 'software.amazon.awssdk:firehose-derived-enforced-platform:2.27.4'
           - Variant 'javadoc' provides 'software.amazon.awssdk:firehose:2.27.4'
           - Variant 'platform-compile' provides 'software.amazon.awssdk:firehose-derived-platform:2.27.4'
           - Variant 'platform-runtime' provides 'software.amazon.awssdk:firehose-derived-platform:2.27.4'
           - Variant 'runtime' provides 'software.amazon.awssdk:firehose:2.27.4'
           - Variant 'sources' provides 'software.amazon.awssdk:firehose:2.27.4'
v
Can you share a build
--scan
URL of the old build that worked and one for the new build not working? That dependency seems to not publish test fixtures or even Gradle module metadata at all.
s
Thanks. I fixed it by removing the unnecessary api(testFixtures()) on firehose. Still don't know why it worked before with kotlin 1.9.23. maybe something related to the dependency has changed.
🤷‍♂️ 1
👌 1