Javier
05/17/2022, 7:37 PMtargetCompatibility
and sourceCompatibility
?Alexander.Likhachev
05/17/2022, 7:42 PMkotlinOptions.jvmTarget
Javier
05/17/2022, 7:42 PMVampire
05/17/2022, 7:51 PMJavier
05/17/2022, 7:53 PMJavier
05/17/2022, 7:53 PMVampire
05/17/2022, 7:59 PMjvmTarget
directly, or you can simply set the JVM Toolchain.
If you do the latter you would be save when adding Java code later, but other than that I don't think it makes a difference.rocketraman
05/17/2022, 11:15 PMVampire
05/17/2022, 11:18 PMrocketraman
05/17/2022, 11:23 PMJavier
05/21/2022, 4:51 PMjvmTarget = "1.8"
.
In this error we have tried with Java 17 but we have tried with more Java versions and the jvmTarget = "1.8"
If we remove the Gradle plugins which need Java 11 and we compile with Java 8. It works.
Could not determine the dependencies of task ':analysis:low-level-api-fir:compileJava'.
> Could not resolve all task dependencies for configuration ':analysis:low-level-api-fir:compileClasspath'.
> Could not resolve io.arrow-kt:inject-compiler-plugin:0.1.0.
Required by:
project :analysis:low-level-api-fir
> No matching variant of io.arrow-kt:inject-compiler-plugin:0.1.0 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 io.arrow-kt:inject-compiler-plugin:0.1.0 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 io.arrow-kt:inject-compiler-plugin:0.1.0 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
> Could not resolve io.arrow-kt:inject-annotations:0.1.0.
Required by:
project :analysis:low-level-api-fir
> No matching variant of io.arrow-kt:inject-annotations:0.1.0 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 io.arrow-kt:inject-annotations:0.1.0 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 io.arrow-kt:inject-annotations:0.1.0 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
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
Alexander.Likhachev
05/23/2022, 2:32 PM