Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[d17-5] [Xamarin.Android.Build.Tasks] allow JDK 17 usage #8313

Merged
merged 1 commit into from
Aug 31, 2023

Commits on Aug 31, 2023

  1. [Xamarin.Android.Build.Tasks] allow JDK 17 usage

    Context: dotnet#8309
    Context: https://learn.microsoft.com/java/openjdk/download#openjdk-17
    
    Classic Xamarin.Android apps appear to work with JDK-17, just by doing:
    
        msbuild -r -bl -t:SignAndroidPackage -p:JavaSdkDirectory="C:\Program Files\Microsoft\jdk-17.0.8.101-hotspot" -p:LatestSupportedJavaVersion=17.99
    
    I see log messages calling a JDK 17 `javac` like:
    
        _CompileJava:
        C:\Program Files\Microsoft\jdk-17.0.8.101-hotspot\bin\javac.exe -J-Dfile.encoding=UTF8 "@C:\Users\jopepper\AppData\Local\Temp\tmp119C.tmp" -target 1.8 -source 1.8
    
    Update `$(LatestSupportedJavaVersion)` to allow usage of JDK 17.
    jonathanpeppers committed Aug 31, 2023
    Configuration menu
    Copy the full SHA
    8b49491 View commit details
    Browse the repository at this point in the history