Skip to content

Java 11 on GitHub Actions? #26929

Answered by weide-zhou
sblantipodi asked this question in Actions
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants