Skip to content

deps: Bump org.gradle.toolchains.foojay-resolver-convention from 0.10.0 to 1.0.0 #246

deps: Bump org.gradle.toolchains.foojay-resolver-convention from 0.10.0 to 1.0.0

deps: Bump org.gradle.toolchains.foojay-resolver-convention from 0.10.0 to 1.0.0 #246

Workflow file for this run

name: Commit Stage
on:
push:
branches:
- main
paths-ignore:
- '.editorconfig'
- '.gitattributes'
- '.gitignore'
- '.sdkmanrc'
- '*.adoc'
- '*.png'
- '*.md'
- '*.txt'
- 'catalog-info.yaml'
- 'docs/**'
- '.github/ISSUE_TEMPLATE/**'
- '.github/*.md'
- '.github/*.yml'
- '.github/*.yaml'
pull_request:
branches:
- main
permissions:
contents: read
jobs:
build:
name: Build
runs-on: ubuntu-24.04
permissions:
contents: write
discussions: write
issues: write
pull-requests: write
steps:
- name: Check out source code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Set up Java
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
with:
java-version: 21
distribution: temurin
- name: Setup Gradle
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
- name: Compile and test
run: ./gradlew build -Dorg.gradle.parallel=false
- name: Generate SBOMs
run: ./gradlew cyclonedxBom
- name: Stage artifacts to local directory
if: ${{ github.ref == 'refs/heads/main' }}
run: ./gradlew publish
- name: Define environment variables for Java project
if: ${{ github.ref == 'refs/heads/main' }}
run: |
GROUP=$(./gradlew properties | grep 'group:' | awk '{print $2}')
echo "GROUP=$GROUP" >> $GITHUB_ENV
echo "group: $GROUP"
VERSION=$(./gradlew properties | grep 'version:' | awk '{print $2}')
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "version: $VERSION"
- name: Release
if: ${{ github.ref == 'refs/heads/main' }}
uses: jreleaser/release-action@80ffb38fa759704eed4db5c7fcaae3ac1079473e # v2
with:
arguments: full-release
env:
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.JRELEASER_GPG_PUBLIC_KEY }}
JRELEASER_GPG_SECRET_KEY: ${{ secrets.JRELEASER_GPG_SECRET_KEY }}
JRELEASER_GPG_PASSPHRASE: ${{ secrets.JRELEASER_GPG_PASSPHRASE }}
JRELEASER_MAVENCENTRAL_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
JRELEASER_MAVENCENTRAL_TOKEN: ${{ secrets.SONATYPE_TOKEN }}
JRELEASER_NEXUS2_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
JRELEASER_NEXUS2_TOKEN: ${{ secrets.SONATYPE_TOKEN }}
JRELEASER_PROJECT_JAVA_GROUP_ID: ${{ env.GROUP }}
JRELEASER_PROJECT_VERSION: ${{ env.VERSION }}
- name: Upload JReleaser output
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
retention-days: 1
name: jreleaser-output
path: |
out/jreleaser/trace.log
out/jreleaser/output.properties
- name: Trigger documentation update
if: ${{ github.ref == 'refs/heads/main' }}
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3.0.0
with:
token: ${{ secrets.DISPATCH_TOKEN }}
repository: arconia-io/arconia-io.github.io
event-type: docs-update