Skip to content

Bump commons-codec:commons-codec from 1.16.0 to 1.16.1 #64

Bump commons-codec:commons-codec from 1.16.0 to 1.16.1

Bump commons-codec:commons-codec from 1.16.0 to 1.16.1 #64

Workflow file for this run

# Build a Java project with Gradle for every pull request.
# Based upon https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle.
name: Build for every Pull Request
# Run this on every pull request.
on: pull_request
jobs:
# The Ubuntu-based build job.
buildLinux:
runs-on: ubuntu-latest
# Our global environment variables used as a replacement for providing an `oc_okapi.properties` file.
env:
OC_OKAPI_DE_CONSUMER_KEY: REPLACE_ME
OC_OKAPI_DE_CONSUMER_SECRET: REPLACE_ME
# Run compilation tests.
# EOL: https://adoptium.net/support/ and https://endoflife.date/oracle-jdk
# The format checker requires at least Java 11, while the other ones are more recent.
# Please note that we still support Java versions starting with Java 8, but we cannot compile our
# code with Java 8 as they miss the newer APIs we reference inside the `Compatibility.java` file.
strategy:
matrix:
java: [11, 17, 21, GA]
# Make sure to always run for all Java versions to sort out possible incompatibilities.
# Example: Gradle might not yet support the GA/EA releases, as indicated by
# https://docs.gradle.org/current/userguide/compatibility.html
fail-fast: false
# Use a better name.
name: Linux Build with Java ${{ matrix.java }}
# The actual build process.
steps:
- name: Checkout Code
uses: actions/checkout@v4
# Use OpenJDK from https://jdk.java.net/.
# See https://github.com/oracle-actions/setup-java.
# This action only supports the latest release, see https://github.com/oracle-actions/setup-java/issues/14.
# For this reason, all other builds happen with the https://github.com/actions/setup-java action.
- name: Download JDK (jdk.java.net)
uses: oracle-actions/setup-java@v1
id: jdk
with:
website: jdk.java.net
release: ${{ matrix.java }}
if: ${{ contains(fromJson('["GA", "EA"]'), matrix.java) }}
- name: Download JDK (Eclipse)
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
if: ${{ !contains(fromJson('["GA", "EA"]'), matrix.java) }}
- name: Display Java Version
run: java --version
# Cache some Gradle files.
- name: Cache Gradle Wrapper
uses: actions/cache@v4
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
- name: Cache Gradle Packages
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
# Run the actual steps after the preparations.
- name: Grant Execute Permission for gradlew
run: chmod +x gradlew
- name: Clean Build Area
run: ./gradlew clean
- name: Verify Code Format
run: ./gradlew verifyGoogleJavaFormat
- name: Build JAR
run: ./gradlew jar