name: CI on: push: branches: ["**"] pull_request: branches: ["**"] jobs: build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 # Gradle 8.11.1 cannot run its own daemon on JDK 25 yet, but the plugin's # toolchain targets 25 (required by the Paper 26.2 API). Install both: # JDK 21 last so it becomes JAVA_HOME (runs Gradle itself), while JDK 25 # stays discoverable via JAVA_HOME_25_X64 for Gradle's toolchain to use. - name: Set up JDKs uses: actions/setup-java@v4 with: distribution: temurin java-version: | 25 21 - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build run: ./gradlew build --no-daemon # v4 uses @actions/artifact v2, which refuses to run against Gitea's # self-hosted Actions (it reports itself as GHES, which v2 blocks). - name: Upload plugin jar uses: actions/upload-artifact@v3 with: name: BoatParty path: build/libs/BoatParty-*.jar