From 24aeaacbd05099f3a32932d3bc2cfdaa9c7d251f Mon Sep 17 00:00:00 2001 From: Tomasz Godzik Date: Tue, 14 May 2024 11:14:02 +0200 Subject: [PATCH] bugfix: Use temurin explicitely Older coursier versions might look for adopt as default. --- packages/metals-languageclient/src/setupCoursier.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/metals-languageclient/src/setupCoursier.ts b/packages/metals-languageclient/src/setupCoursier.ts index 858d42f1..20adfe65 100644 --- a/packages/metals-languageclient/src/setupCoursier.ts +++ b/packages/metals-languageclient/src/setupCoursier.ts @@ -52,7 +52,7 @@ export async function setupCoursier( const resolveJavaHomeWithCoursier = async (coursier: string) => { await run( coursier, - ["java", "--jvm", javaVersion, "-version"], + ["java", "--jvm", `temurin:${javaVersion}`, "-version"], handleOutput );