Building the kotlin example fails:
$ git log
Commit fffe0320d3c6af86e466f96bb3ec424f1c36a063 (grafted, HEAD -> master, origin/master, origin/HEAD)
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Wed Oct 22 18:09:03 2025 +0000
after some time:
[Incubating] Problems report is available at: ...
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':native-client:installDist'.
> Could not resolve all dependencies for configuration ':native-client:runtimeClasspath'.
> Could not resolve project :stub-lite.
Required by:
project ':native-client'
> Dependency resolution is looking for a library compatible with JVM runtime version 11, but 'project :stub-lite' is only compatible with JVM runtime version 17 or newer.
* Try:
> Change the dependency on 'project :stub-lite' to an earlier version that supports JVM runtime version 11.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to generate a Build Scan (Powered by Develocity).
> Get more help at https://help.gradle.org.
BUILD FAILED in 687ms
So it seems :native-client:installDist wants JRE version 11, but :stub-lite cannot deal with anything older than 17.
One finds that gradle has downloaded 4 JDKs (not sure why):
$ ls ~/.gradle/jdks/
CACHEDIR.TAG OpenJDK11U-jdk_x64_linux_hotspot_11-any#20vendor-11.0.29_7.tar.gz
eclipse_adoptium-11-amd64-linux.2 OpenJDK11U-jdk_x64_linux_hotspot_11-any#20vendor-11.0.29_7.tar.gz.lock
eclipse_adoptium-11-amd64-linux.2.reserved.lock OpenJDK17U-jdk_x64_linux_hotspot_17-any#20vendor-17.0.18_8.tar.gz
eclipse_adoptium-17-amd64-linux.2 OpenJDK17U-jdk_x64_linux_hotspot_17-any#20vendor-17.0.18_8.tar.gz.lock
eclipse_adoptium-17-amd64-linux.2.reserved.lock
I modified the file native-client/build.gradle.kts
which contains the line
kotlin { jvmToolchain(11) }
to read:
kotlin { jvmToolchain(17) }
This seems to fix the problem
Building the kotlin example fails:
after some time:
So it seems
:native-client:installDistwants JRE version 11, but:stub-litecannot deal with anything older than 17.One finds that gradle has downloaded 4 JDKs (not sure why):
I modified the file
native-client/build.gradle.ktswhich contains the line
to read:
This seems to fix the problem