Skip to content
Closed
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
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build plugin

on:
push:
workflow_dispatch:

permissions:
contents: read

jobs:
build:
name: Build EssentialsX-GUI
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Java 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
cache: gradle

- name: Make Gradle wrapper executable
run: chmod +x ./gradlew

- name: Build plugin
run: ./gradlew build --no-daemon

- name: Upload plugin artifacts
uses: actions/upload-artifact@v4
with:
name: EssentialsX-GUI
path: build/libs/*.jar
if-no-files-found: error
retention-days: 14
7 changes: 5 additions & 2 deletions base/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,15 @@ dependencies {
runtimeOnly(project(":v2_22_0"))

compileOnly("org.spigotmc:spigot-api:26.2-R0.1-SNAPSHOT")
compileOnly("net.essentialsx:EssentialsX:2.21.2-SNAPSHOT")
compileOnly("net.essentialsx:EssentialsX:2.22.0-SNAPSHOT") {
exclude(group = "io.papermc.paper", module = "paper-api")
}
compileOnly("com.squareup.moshi:moshi:1.15.2")
compileOnly("com.zaxxer:HikariCP:7.0.2")
compileOnly("com.github.InstantlyMoist:privatebin-java-api:master")
compileOnly("me.clip:placeholderapi:2.12.2")
compileOnly("com.github.cryptomorin:XSeries:13.7.1")
compileOnly("net.kyori:adventure-text-minimessage:4.26.1")
compileOnly("net.kyori:adventure-platform-bukkit:4.4.1")
compileOnly("com.sk89q.worldguard:worldguard-bukkit:7.0.17")

Expand Down Expand Up @@ -136,4 +139,4 @@ tasks.processResources {
filesMatching("plugin.yml") {
expand(props)
}
}
}
3 changes: 2 additions & 1 deletion v2_21_2/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins {
java.sourceCompatibility = JavaVersion.VERSION_21

repositories {

// SpigotAPI
maven {
url = uri("https://repo.papermc.io/repository/maven-public/")
Expand All @@ -23,4 +24,4 @@ dependencies {
compileOnly("net.essentialsx:EssentialsX:2.21.2-SNAPSHOT") {
exclude(group = "io.papermc.paper", module = "paper-api")
}
}
}
3 changes: 2 additions & 1 deletion v2_22_0/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins {
java.sourceCompatibility = JavaVersion.VERSION_21

repositories {

// SpigotAPI
maven {
url = uri("https://repo.papermc.io/repository/maven-public/")
Expand All @@ -23,4 +24,4 @@ dependencies {
compileOnly("net.essentialsx:EssentialsX:2.22.0-SNAPSHOT") {
exclude(group = "io.papermc.paper", module = "paper-api")
}
}
}
Loading