https://kotlinlang.org logo
Title
c

carloxavier

07/21/2022, 10:51 AM
hey guys! we are migrating our android project to a newer kotlin (1.6), so we needed to migrate also koin from 3.1.2 to 3.2.0, but it seems the latest koin-test-junit4 and koin-test-junit5 require compatibility with java 11? we have it currently set to java 8 (see the error below) The stacktrace of the crash:
Variant 'apiElements' capability io.insert-koin:koin-test-junit4:3.2.0 declares an API of a library, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm':
              - Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
          - Variant 'runtimeElements' capability io.insert-koin:koin-test-junit4:3.2.0 declares a runtime of a library, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm':
              - Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
I didn't find any official info about this change of source compatibility, any hint about this would be greatly appreciated, thanks