Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 8 additions & 16 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,22 @@
name: Build
name: Java CI with Gradle

on: [ push ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/checkout@v5
- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: 'gradle'

- name: Build with Gradle
run: ./gradlew test build --no-daemon

- name: Publish with Gradle
if: github.ref == 'refs/heads/master'
env:
GPG_PASSPHRASE: ${{ secrets.GPG_KEY_PASSPHRASE }}
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
USERNAME: ${{ secrets.REPO_USER }}
TOKEN: ${{ secrets.REPO_TOKEN }}

run: ./gradlew publish --no-daemon
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ProtocolSidebar
path: build/libs/
31 changes: 31 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release to Repo

on:
workflow_dispatch: { }

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: 'gradle'

- name: Build with Gradle
run: ./gradlew test build --no-daemon

- name: Publish with Gradle
if: github.ref == 'refs/heads/master'
env:
GPG_PASSPHRASE: ${{ secrets.GPG_KEY_PASSPHRASE }}
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
USERNAME: ${{ secrets.REPO_USER }}
TOKEN: ${{ secrets.REPO_TOKEN }}

run: ./gradlew publish --no-daemon
12 changes: 6 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ group = "me.catcoder"
version = "6.2.10-SNAPSHOT"
description = "Powerful feature-packed Minecraft scoreboard library"

val adventureVersion = "4.16.0"
val paperVersion = "1.20.1-R0.1-SNAPSHOT"
val viaVersionVersion = "5.0.0"
val viaNBTVersion = "5.0.2"
val adventureVersion = "4.25.0"
val paperVersion = "1.20.4-R0.1-SNAPSHOT"
val viaVersionVersion = "5.5.1"
val viaNBTVersion = "5.1.2"
val miniPlaceholdersVersion = "2.2.3"
val lombokVersion = "1.18.30"
val lombokVersion = "1.18.42"
val foliaLibVersion = "0.5.1"

allprojects {
Expand All @@ -33,7 +33,7 @@ allprojects {
}
dependencies {
testImplementation("junit:junit:4.13.2")
testImplementation("org.mockito:mockito-core:5.7.0")
testImplementation("org.mockito:mockito-core:5.20.0")
testImplementation("org.powermock:powermock-module-junit4:2.0.9")
testImplementation("org.powermock:powermock-api-mockito2:2.0.9")

Expand Down
2 changes: 1 addition & 1 deletion server/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
environment:
EULA: "TRUE"
TYPE: "PAPER"
VERSION: "1.20.4"
VERSION: "1.21.8"
JAVA_TOOL_OPTIONS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005"
tty: true
stdin_open: true
Expand Down