Skip to content

Bump org.apache.logging.log4j:log4j-bom from 2.20.0 to 2.21.0 #196

Bump org.apache.logging.log4j:log4j-bom from 2.20.0 to 2.21.0

Bump org.apache.logging.log4j:log4j-bom from 2.20.0 to 2.21.0 #196

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- '*'
jobs:
build:
strategy:
matrix:
jdk: ['17', '21']
runs-on: ubuntu-latest
name: "Build (JDK ${{ matrix.jdk }})"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
id: setup-gradle-jdk
with:
distribution: liberica
java-version: 17
- uses: actions/setup-java@v3
if: matrix.jdk != '17'
with:
distribution: liberica
java-version: ${{ matrix.jdk }}
- name: 'Prepare TOOLCHAIN_JDK env var'
if: matrix.jdk != '17'
shell: bash
run: echo "TOOLCHAIN_JDK=$JAVA_HOME" >> $GITHUB_ENV
- uses: gradle/gradle-build-action@v2
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
JAVA_HOME: ${{ steps.setup-gradle-jdk.outputs.path }}
with:
arguments: |
-Porg.gradle.java.installations.auto-download=false
"-Dscan.value.GitHub job=${{ github.job }}"
-Dscan.tag.JDK_${{ matrix.jdk }}
-PjavaToolchainVersion=${{ matrix.jdk }}
--scan
javaToolchains
build
ea-build:
strategy:
matrix:
jdk: ['22']
runs-on: ubuntu-latest
name: "Early Access Build (JDK ${{ matrix.jdk }})"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
id: setup-gradle-jdk
with:
distribution: liberica
java-version: 17
- uses: oracle-actions/setup-java@v1
with:
website: jdk.java.net
release: ${{ matrix.jdk }}
version: latest
- name: 'Prepare TOOLCHAIN_JDK env var'
if: matrix.jdk != '17'
shell: bash
run: echo "TOOLCHAIN_JDK=$JAVA_HOME" >> $GITHUB_ENV
- uses: gradle/gradle-build-action@v2
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
JAVA_HOME: ${{ steps.setup-gradle-jdk.outputs.path }}
with:
arguments: |
-Porg.gradle.java.installations.auto-download=false
"-Dscan.value.GitHub job=${{ github.job }}"
-Dscan.tag.JDK_${{ matrix.jdk }}
-PjavaToolchainVersion=${{ matrix.jdk }}
--scan
javaToolchains
build
publish:
name: Publish Snapshots
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.repository == 'junit-team/testng-engine' && (startsWith(github.ref, 'refs/heads/releases/') || github.ref == 'refs/heads/main')
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: liberica
java-version: 17
- uses: gradle/gradle-build-action@v2
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }}
with:
arguments: |
-Porg.gradle.java.installations.auto-download=false
"-Dscan.value.GitHub job=${{ github.job }}"
-Dscan.tag.publish
--scan
javaToolchains
publish
-x check
--no-configuration-cache