Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 20296

Can't add Kotlin JVM library as dependency to another Kotlin JVM library due to target JDK version

$
0
0

Hi all,

I maintain two open source, Kotlin/JVM libraries, and one of them requires the other. Both libraries must support JDK 8 and 11, and they must also work on Android.

The Gradle build file for each library is configured to target Java 1.8:

But if I try to add tech.relaycorp:relaynet as a dependency to tech.relaycorp:cogrpc, gradle build fails with a long list of errors, the first of which reads Required org.gradle.jvm.version '8' and found incompatible value '11'. See: https://scans.gradle.com/s/ekr7bj2yjnll6/failure

What am I doing wrong?

Cheers.


Viewing all articles
Browse latest Browse all 20296

Trending Articles