Open abelavusau opened 10 months ago
To get an idea what the issue could be here I would need some example project. And some information like gradle & java version that are used here. What might be an issue that I see is that you use org.gradle.internal.jvm.Jvm.current().javaHome but there is the java toolchain that should be used instead. See https://docs.gradle.org/current/userguide/toolchains.html It might be that you already use the java toolchain for the java projects which might be a different JDK than what you get by the internal gradle JVM.
We have a build consisting of cpp projects and some of those are jni shared libraries with the following build configuration:
Running
gradle release
on the jni project i got:After this all projects in the build are affected by this issue unless
native-build/.gradle
cache is deleted and the build is reconfigured again.