You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./gradlew bootRun --info
2021-05-10T14:11:56.283+0200 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Toolchain detection' started
2021-05-10T14:11:56.288+0200 [INFO] [org.gradle.process.internal.DefaultExecHandle] Starting process 'command '/usr/libexec/java_home''. Working directory: /Users/tomasz.michalak/.gradle/daemon/6.9 Command: /usr/libexec/java_home -V
2021-05-10T14:11:56.288+0200 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: STARTING
2021-05-10T14:11:56.288+0200 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Waiting until process started: command '/usr/libexec/java_home'.
2021-05-10T14:11:56.301+0200 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: STARTED
2021-05-10T14:11:56.302+0200 [DEBUG] [org.gradle.process.internal.ExecHandleRunner] waiting until streams are handled...
2021-05-10T14:11:56.302+0200 [INFO] [org.gradle.process.internal.DefaultExecHandle] Successfully started process 'command '/usr/libexec/java_home''
2021-05-10T14:11:56.324+0200 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: SUCCEEDED
2021-05-10T14:11:56.324+0200 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Process 'command '/usr/libexec/java_home'' finished with exit value 0 (state: SUCCEEDED)
2021-05-10T14:11:56.325+0200 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Toolchain detection'
2021-05-10T14:11:56.325+0200 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Toolchain detection' completed
2021-05-10T14:11:56.326+0200 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on adoptopenjdk-15-x64-mac.tar.gz.
2021-05-10T14:11:56.327+0200 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on adoptopenjdk-15-x64-mac.tar.gz.
2021-05-10T14:11:56.327+0200 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Provisioning toolchain adoptopenjdk-15-x64-mac.tar.gz' started
2021-05-10T14:11:56.327+0200 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Unpacking toolchain archive' started
2021-05-10T14:12:01.008+0200 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Unpacking toolchain archive'
2021-05-10T14:12:01.009+0200 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Unpacking toolchain archive' completed
2021-05-10T14:12:01.009+0200 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Provisioning toolchain adoptopenjdk-15-x64-mac.tar.gz'
2021-05-10T14:12:01.009+0200 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Provisioning toolchain adoptopenjdk-15-x64-mac.tar.gz' completed
2021-05-10T14:12:01.009+0200 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on adoptopenjdk-15-x64-mac.tar.gz.
Context
I want to use Liberica JDK when creating my Spring Boot project. Spring Boot uses the Packeto buildpack support for Gradle buildinig a Docker image that uses Liberica internally.
Tried to reproduce this here. Using gradle init and the snippet you provide, I can't reproduce the wrong jdk to be downloaded. It properly fails with
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':lib:compileJava'.
> Could not resolve all dependencies for configuration ':lib:compileClasspath'.
> Failed to calculate the value of task ':lib:compileJava' property 'javaCompiler'.
> No compatible toolchains found for request filter: {languageVersion=15, vendor=BELLSOFT, implementation=vendor-specific} (auto-detect false, auto-download true)
I'd like to understand if you see a specific defect that the wrong jdk is downloaded. Nonetheless, downloading JDKs for Bellsoft would be a feature request to be looked at (dup of #16596).
Would you be able to share a reproducer which downloads the wrong JDK?
Expected Behavior
Liberica JDK is downloaded when it is specified in
java.toolchain
:Current Behavior
AdoptOpenJDK is downloaded. See the log:
Context
I want to use Liberica JDK when creating my Spring Boot project. Spring Boot uses the Packeto buildpack support for Gradle buildinig a Docker image that uses Liberica internally.
Steps to Reproduce
Create a sample Spring Boot project and add:
Your Environment
Build scan URL:
Not required
The text was updated successfully, but these errors were encountered: