diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index 1aebbc8..22382c4 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -8,10 +8,11 @@ jobs: steps: - uses: actions/checkout@v4 - run: sudo apt-get install protobuf-compiler - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - name: Set up JDK 8 + uses: actions/setup-java@v4 with: - java-version: 1.8 + distribution: zulu + java-version: 8 - name: Build with Maven run: mvn -B package --file pom.xml @@ -20,10 +21,11 @@ jobs: steps: - uses: actions/checkout@v4 - run: sudo apt-get install protobuf-compiler - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - name: Set up JDK 8 + uses: actions/setup-java@v4 with: - java-version: 1.8 + distribution: zulu + java-version: 8 - name: Build with Maven run: mvn -B package --file pom.xml @@ -32,10 +34,11 @@ jobs: steps: - uses: actions/checkout@v4 - run: sudo apt-get install protobuf-compiler libprotobuf-java - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - name: Set up JDK 8 + uses: actions/setup-java@v4 with: - java-version: 1.8 + distribution: zulu + java-version: 8 - name: Build with Ant run: ant @@ -44,10 +47,11 @@ jobs: steps: - uses: actions/checkout@v4 - run: sudo apt-get install protobuf-compiler libprotobuf-java - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - name: Set up JDK 8 + uses: actions/setup-java@v4 with: - java-version: 1.8 + distribution: zulu + java-version: 8 - name: Build with Ant run: ant