Update KordEx and Gradle, pin to Java 13 #80
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- main | |
- legacy-klogging | |
tags-ignore: | |
- '**' | |
pull_request: | |
branches: | |
- main | |
jobs: | |
check-api: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 13 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 1.13 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Build Project | |
run: ./gradlew clean apiCheck -x build | |
build: | |
needs: check-api | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 13 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 1.13 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Build Project | |
run: ./gradlew build --stacktrace -x test | |
# test: | |
# needs: build | |
# runs-on: ubuntu-latest | |
# | |
# steps: | |
# - uses: actions/checkout@v4 | |
# | |
# - name: Set up JDK 13 | |
# uses: actions/setup-java@v4 | |
# | |
# with: | |
# distribution: 'temurin' | |
# java-version: 1.13 | |
# | |
# - name: Run tests | |
# uses: gradle/actions/setup-gradle@v3 | |
# env: | |
# TEST_TOKEN: ${{ secrets.TEST_TOKEN }} | |
# with: | |
# arguments: test -x build | |
# gradle-home-cache-cleanup: true | |
publish: | |
# needs: test | |
needs: build | |
runs-on: ubuntu-latest | |
env: | |
NEXUS_USER: ${{ secrets.NEXUS_USER }} | |
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} | |
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} | |
GPG_SIGNING_PASS: ${{ secrets.GPG_SIGNING_PASS }} | |
GITHUB_BRANCH_NAME: ${{ github.ref }} | |
GITHUB_TAG_NAME: ${{ github.event.release.tag_name }} | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK 13 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 1.13 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Publish Project | |
run: ./gradlew publish -x test |