69 lines
1.8 KiB
YAML
69 lines
1.8 KiB
YAML
# 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: [ "develop" ]
|
|
pull_request:
|
|
branches: [ "develop" ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- name: Set up JDK 25
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
java-version: '25'
|
|
distribution: 'temurin'
|
|
|
|
- name: Setup Gradle 9.8.0
|
|
uses: gradle/actions/setup-gradle@v5
|
|
with:
|
|
gradle-version: '9.8.0'
|
|
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
|
|
|
|
- name: Build with Gradle Wrapper
|
|
run: ./tools/build-plugin.sh
|
|
|
|
- name: Upload Plugin Artifact
|
|
uses: actions/upload-artifact@v5
|
|
with:
|
|
name: plugin-jar
|
|
path: build/libs/*.jar
|
|
if-no-files-found: error
|
|
retention-days: 14
|
|
|
|
dependency-submission:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- name: Set up JDK 25
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
java-version: '25'
|
|
distribution: 'temurin'
|
|
|
|
- name: Setup Gradle 9.8.0
|
|
uses: gradle/actions/setup-gradle@v5
|
|
with:
|
|
gradle-version: '9.8.0'
|
|
|
|
- name: Generate and submit dependency graph
|
|
uses: gradle/actions/dependency-submission@v5
|