Skip to content

From version 4.7.0 Java 8 compatibility is broken #417

@gigitalz

Description

@gigitalz

I reveive this error:

* What went wrong:
Execution failed for task ':backend:compileKotlin'.
> Could not resolve all files for configuration ':backend:compileClasspath'.
   > Could not resolve com.github.jershell:kbson:0.4.5.
     Required by:
         project :backend > org.litote.kmongo:kmongo-coroutine-serialization:4.7.0 > org.litote.kmongo:kmongo-serialization-mapping:4.7.0
      > No matching variant of com.github.jershell:kbson:0.4.5 was found. The consumer was configured to find an API of a library compatible with Java 8, preferably in the form of class files, preferably optimized for standard JVMs, and its dependencies declared externally, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' but:
          - Variant 'apiElements' capability com.github.jershell:kbson:0.4.5 declares an API of a library, packaged as a jar, preferably optimized for standard JVMs, 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 com.github.jershell:kbson:0.4.5 declares a runtime of a library, packaged as a jar, preferably optimized for standard JVMs, 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

Please also check #391 same issue (and yes it keeps happening).
I am running on java version "1.8.0_301".
I'd like to update but I can't.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions