Skip to content

main: Update dependency org.jetbrains:annotations to v26.0.2 (#850) #2750

main: Update dependency org.jetbrains:annotations to v26.0.2 (#850)

main: Update dependency org.jetbrains:annotations to v26.0.2 (#850) #2750

Workflow file for this run

#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name: Java CI with Gradle
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
# Configure Gradle for optimal use in GiHub Actions, including caching of downloaded dependencies.
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
- name: Setup Gradle
uses: gradle/actions/setup-gradle@0bdd871935719febd78681f197cd39af5b6e16a6 # v4
with:
# The setup-gradle action fails, if the wrapper is not using the right version or is not present.
# Our `gradlew` validates the integrity of the `gradle-wrapper.jar`, so it's safe to disable this.
validate-wrappers: false
- name: Code style checks and tests
run: ./gradlew --continue check
- name: Check Maven publication
run: ./gradlew publishToMavenLocal sourceTarball
- name: Archive test results
uses: actions/upload-artifact@v4
if: always()
with:
name: upload-test-artifacts
path: |
**/build/test-results/**
- name: Stop Gradle daemons
run: ./gradlew --stop
# Ensure that the build works properly when building against the "latest greatest" Java version
- name: Set up JDK 23
uses: actions/setup-java@v4
with:
java-version: '23'
distribution: 'temurin'
- name: Show Java version
run: java -version
- name: Clean
run: ./gradlew clean
- name: Build
run: ./gradlew compileAll
- name: Run selected tests
run: ./gradlew :polaris-quarkus-service:intTest
- name: Archive test results
uses: actions/upload-artifact@v4
if: always()
with:
name: upload-test-artifacts-java-23
path: |
**/build/test-results/**