@@ -17,9 +17,9 @@ partial class Configurables
17
17
{
18
18
const string BinutilsVersion = "L_18.1.6-8.0.0-1" ;
19
19
20
- const string MicrosoftOpenJDK17Version = "17 .0.12 " ;
21
- const string MicrosoftOpenJDK17Release = "17 .0.12 " ;
22
- const string MicrosoftOpenJDK17RootDirName = "jdk-17 .0.12+7 " ;
20
+ const string MicrosoftOpenJDKVersion = "21 .0.5 " ;
21
+ const string MicrosoftOpenJDKRelease = "21 .0.5 " ;
22
+ const string MicrosoftOpenJDKRootDirName = "jdk-21 .0.5+11 " ;
23
23
24
24
static Context ctx => Context . Instance ;
25
25
@@ -28,7 +28,7 @@ public static partial class Urls
28
28
// https://aka.ms/download-jdk/microsoft-jdk-17.0.11-linux-x64.tar.gz
29
29
// https://aka.ms/download-jdk/microsoft-jdk-17.0.11-macOS-x64.tar.gz or https://aka.ms/download-jdk/microsoft-jdk-17.0.11-macos-aarch64.pkg
30
30
// https://aka.ms/download-jdk/microsoft-jdk-17.0.11-windows-x64.zip
31
- public static readonly Uri MicrosoftOpenJDK17 = new Uri ( $ "https://aka.ms/download-jdk/microsoft-jdk-{ MicrosoftOpenJDK17Version } -{ MicrosoftOpenJDKOperatingSystem } .{ MicrosoftOpenJDKFileExtension } ") ;
31
+ public static readonly Uri MicrosoftOpenJDK = new Uri ( $ "https://aka.ms/download-jdk/microsoft-jdk-{ MicrosoftOpenJDKVersion } -{ MicrosoftOpenJDKOperatingSystem } .{ MicrosoftOpenJDKFileExtension } ") ;
32
32
33
33
/// <summary>
34
34
/// Base URL for all Android SDK and NDK downloads. Used in <see cref="AndroidToolchain"/>
@@ -43,11 +43,12 @@ public static partial class Defaults
43
43
public static readonly string BinutilsVersion = Configurables . BinutilsVersion ;
44
44
public static readonly char [ ] PropertyListSeparator = new [ ] { ':' } ;
45
45
46
- public static readonly string JdkFolder = "jdk-17 " ;
46
+ public static readonly string JdkFolder = "jdk-21 " ;
47
47
48
- public static readonly Version MicrosoftOpenJDK17Version = new Version ( Configurables . MicrosoftOpenJDK17Version ) ;
49
- public static readonly Version MicrosoftOpenJDK17Release = new Version ( Configurables . MicrosoftOpenJDK17Release ) ;
50
- public static readonly string MicrosoftOpenJDK17RootDirName = Configurables . MicrosoftOpenJDK17RootDirName ;
48
+ public static readonly Version MicrosoftMinOpenJDKVersion = new Version ( 17 , 0 ) ;
49
+ public static readonly Version MicrosoftOpenJDKVersion = new Version ( Configurables . MicrosoftOpenJDKVersion ) ;
50
+ public static readonly Version MicrosoftOpenJDKRelease = new Version ( Configurables . MicrosoftOpenJDKRelease ) ;
51
+ public static readonly string MicrosoftOpenJDKRootDirName = Configurables . MicrosoftOpenJDKRootDirName ;
51
52
52
53
public const string DotNetTestRuntimeVersion = "3.1.11" ;
53
54
@@ -187,9 +188,8 @@ public static partial class Paths
187
188
public static string InstallMSBuildDir => GetCachedPath ( ref installMSBuildDir , ( ) => ctx . Properties . GetRequiredValue ( KnownProperties . MicrosoftAndroidSdkOutDir ) ) ;
188
189
189
190
// OpenJDK
190
- public static string OldOpenJDKInstallDir => GetCachedPath ( ref oldOpenJDKInstallDir , ( ) => Path . Combine ( ctx . Properties . GetRequiredValue ( KnownProperties . AndroidToolchainDirectory ) , "jdk-1.8" ) ) ;
191
- public static string OpenJDK17InstallDir => GetCachedPath ( ref openJDK17InstallDir , ( ) => Path . Combine ( ctx . Properties . GetRequiredValue ( KnownProperties . AndroidToolchainDirectory ) , "jdk-17" ) ) ;
192
- public static string OpenJDK17CacheDir => GetCachedPath ( ref openJDK17CacheDir , ( ) => ctx . Properties . GetRequiredValue ( KnownProperties . AndroidToolchainCacheDirectory ) ) ;
191
+ public static string OpenJDKInstallDir => GetCachedPath ( ref openJDKInstallDir , ( ) => Path . Combine ( ctx . Properties . GetRequiredValue ( KnownProperties . AndroidToolchainDirectory ) , Defaults . JdkFolder ) ) ;
192
+ public static string OpenJDKCacheDir => GetCachedPath ( ref openJDKCacheDir , ( ) => ctx . Properties . GetRequiredValue ( KnownProperties . AndroidToolchainCacheDirectory ) ) ;
193
193
194
194
// .NET 6
195
195
public static string NetcoreAppRuntimeAndroidARM => GetCachedPath ( ref netcoreAppRuntimeAndroidARM , ( ) => GetNetcoreAppRuntimePath ( ctx , "arm" ) ) ;
@@ -269,9 +269,8 @@ static string GetCachedPath (ref string? variable, Func<string> creator)
269
269
static string ? installMSBuildDir ;
270
270
static string ? monoAndroidFrameworksRootDir ;
271
271
static string ? externalJavaInteropDir ;
272
- static string ? openJDK17InstallDir ;
273
- static string ? openJDK17CacheDir ;
274
- static string ? oldOpenJDKInstallDir ;
272
+ static string ? openJDKInstallDir ;
273
+ static string ? openJDKCacheDir ;
275
274
static string ? configurationPropsGeneratedPath ;
276
275
static string ? windowsBinutilsInstallDir ;
277
276
static string ? hostBinutilsInstallDir ;
0 commit comments