pluses / ktypes

Apache License 2.0
43 stars 6 forks source link

Not compatible with Java 8 #1

Open dumptruckman opened 1 year ago

dumptruckman commented 1 year ago

Despite this library seemingly being built to support Java 8 (gradle.properties shows jvmVersion=1.8) I am unable to add it to a project using Java 8. I end up getting this error from gradle:

Execution failed for task ':modules:web:compileKotlin'.
> Could not resolve all files for configuration ':modules:web:compileClasspath'.
   > Could not resolve cloud.pluses:ktypes:1.1.0.
     Required by:
         project :modules:web
      > No matching variant of cloud.pluses:ktypes:1.1.0 was found. The consumer was configured to find an API of a library compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' but:
          - Variant 'apiElements' capability cloud.pluses:ktypes:1.1.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 cloud.pluses:ktypes:1.1.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
          - Variant 'sourcesElements' capability cloud.pluses:ktypes:1.1.0 declares a runtime of a component, and its dependencies declared externally:
              - Incompatible because this component declares documentation and the consumer needed a library
              - Other compatible attributes:
                  - Doesn't say anything about its target Java version (required compatibility with Java 8)
                  - Doesn't say anything about its elements (required them packaged as a jar)
                  - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'jvm')
oooplz commented 1 year ago

I guessing the lib should work with kotlin. Could you provide more information about your project.