autonomousapps / autonomousapps/dependency-analysis-gradle-plugin

Fails to build with Temurin JDK 17

Open
#1,033 2 comments 0 reactions 0 assignees View on GitHub
bug more information needed toolchain:android toolchain:java
Dominant language
Kotlin
Stars
2.2k
Forks
158
Avg merge
16h 25m
Merged PRs (30d)
46

Description

**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.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing ./gradlew buildHealth with the reported Gradle 8.3, Android 34, and Temurin 17 setup, then inspect the :lightwallet-client-lib:compileDebugJavaWithJavac JdkImageTransform failure and jlink path. Done means the build succeeds with the supported JDK setup or the issue is narrowed to a documented compatibility requirement.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, kotlin
Domain
build-system, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.