Java 11 on GitHub Actions?

As title.
How can I use JDK 11 on GitHub Actions?

Thanks

Hi @sblantipodi,

Do you mean using JDK 11 in workflow? You can use ‘actions/setup-java@v1’ to setup jdk. Code sample as below:

      - uses: actions/setup-java@v1
        with:
          java-version: '11'

More details please check the action usage here: https://github.com/actions/setup-java#setup-java.

Thanks

1 Like