name: Jenetics Build

on:
    push:
        branches:
            - main
            - releases/*
            - issues/*
    pull_request:
        branches:
            - main
            - releases/*

jobs:
    build:
        runs-on: ubuntu-latest
        steps:
            - uses: actions/checkout@v2
            - name: Set up JDK
              uses: actions/setup-java@v1
              with:
                  java-version: 11
            - name: Build with Gradle
              run: ./gradlew build

name: Jenetics Build

on:
    push:
        branches:
            - main
            - releases/*
            - issues/*
    pull_request:
        branches:
            - main
            - releases/*

jobs:
    build:
        runs-on: ubuntu-latest
        steps:
            - uses: actions/checkout@v2
            - name: Set up JDK
              uses: actions/setup-java@v1
              with:
                  java-version: 17
            - name: Build with Gradle
              run: ./gradlew build

Update Java version to 17
Update Java version to 17