dependency-analysis-gradle-plugin
dependency-analysis-gradle-plugin copied to clipboard
Fails to build with Temurin JDK 17
Build scan link
Plugin version 1.25.0
Gradle version 8.3
JDK version 17
% java --version
openjdk 17.0.8.1 2023-08-24
OpenJDK Runtime Environment Temurin-17.0.8.1+1 (build 17.0.8.1+1)
OpenJDK 64-Bit Server VM Temurin-17.0.8.1+1 (build 17.0.8.1+1, mixed mode)
(Optional) Kotlin and Kotlin Gradle Plugin (KGP) version
(Optional) Android Gradle Plugin (AGP) version
(Optional) reason output for bugs relating to incorrect advice
* What went wrong:
Execution failed for task ':lightwallet-client-lib:compileDebugJavaWithJavac'.
> Could not resolve all files for configuration ':lightwallet-client-lib:androidJdkImage'.
> Failed to transform core-for-system-modules.jar to match attributes {artifactType=_internal_android_jdk_image, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Execution failed for JdkImageTransform: /Users/lucacampobasso/Library/Android/sdk/platforms/android-34/core-for-system-modules.jar.
> jlink executable /Library/Java/JavaVirtualMachines/temurin-17.jre/Contents/Home/bin/jlink does not exist.
Describe the bug
What's written above. It's the output of running ./gradlew buildHealth
To Reproduce N/A
Expected behavior N/A
Additional context Sorry for the lack of the other information, but I believe this has to do mostly with the java JDK.
I think it's missing a jlink there - but I have no idea where to take it from. Is there a setting to change that somehow?
Thanks for the issue. Do you have a reproducer? Also, I note you appear to be describing an Android project but have not provided the AGP version in use. And given that it's an Android project, the Kotlin version may also be relevant.