autonomousapps / dependency-analysis-gradle-plugin

Gradle plugin for JVM projects written in Java, Kotlin, Groovy, or Scala; and Android projects written in Java or Kotlin. Provides advice for managing dependencies and other applied plugins
Apache License 2.0
1.77k stars 116 forks source link

Fails to build with Temurin JDK 17 #1033

Open MeerKatDev opened 10 months ago

MeerKatDev commented 10 months ago

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.

MeerKatDev commented 10 months ago

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?

autonomousapps commented 10 months ago

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.