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

[build] Add support for JDK 17 #1141

Merged
merged 1 commit into from
Sep 1, 2023
Merged

[build] Add support for JDK 17 #1141

merged 1 commit into from
Sep 1, 2023

Commits on Aug 28, 2023

  1. [build] Add support for JDK 17

    Update `<JdkInfo/>` task to emit new `$(Java*MajorVersion)`
    and `$(JavaApi*DefineConstants)` MSBuild properties.  These are used
    by `src/Java.Base` so that it knows which JDK version it's binding.
    
    Update `src/Java.Base` to support binding the `java.base.jmod` from
    JDK 17.
    
    Note: This "JDK-17 Java.Base binding" was a "time limited" effort.
    
    To build against JDK-17:
    
     1. Install JDK-17.
    
     2. Prepare and override `$(JdksRoot)`:
    
            dotnet build -t:Prepare Java.Interop.sln -p:JdksRoot=/Library/Java/JavaVirtualMachines/microsoft-17.jdk/Contents/Home
    
        will use the Microsoft OpenJDK 17 installation on macOS.
    
     3. Build:
    
            dotnet build Java.Interop.sln
    jonpryor committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    93f563c View commit details
    Browse the repository at this point in the history