Skip to content
This repository was archived by the owner on Sep 24, 2023. It is now read-only.

Commit ea25edc

Browse files
Update CI
1 parent 488a914 commit ea25edc

File tree

4 files changed

+40
-32
lines changed

4 files changed

+40
-32
lines changed

.github/scripts/buildtools.sh

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,30 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout Code
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v3
1616

1717
- name: Set Up JDK 17
18-
uses: actions/setup-java@v2
18+
uses: actions/setup-java@v3
1919
with:
2020
java-version: 17
2121
distribution: adopt
2222

23-
- name: Run BuildTools
24-
run: . .github/scripts/buildtools.sh
25-
2623
- name: Setup Gradle
2724
uses: gradle/gradle-build-action@v2
25+
with:
26+
cache-disabled: true
2827

2928
- name: Build Spigot-Mapped
30-
run: ./gradlew clean addonJar "-DoutDir=artifacts/"
29+
uses: gradle/gradle-build-action@v2
30+
with:
31+
arguments: |
32+
addonJar
33+
-PoutDir=artifacts
34+
-PxenondevsNms
35+
--scan
36+
env:
37+
ORG_GRADLE_PROJECT_xenondevsNmsUsername: ${{ secrets.XENONDEVS_NMS_USERNAME }}
38+
ORG_GRADLE_PROJECT_xenondevsNmsPassword: ${{ secrets.XENONDEVS_NMS_PASSWORD }}
3139

3240
- name: Upload Artifacts
3341
id: upload
@@ -36,10 +44,10 @@ jobs:
3644
name: Artifacts
3745
path: ./artifacts/*.jar
3846

39-
- name: Publish Artifacts
47+
- name: Attach Artifacts to Release
4048
if: github.event_name == 'release'
4149
uses: skx/github-action-publish-binaries@release-2.0
4250
env:
4351
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4452
with:
45-
args: ./artifacts/*.jar
53+
args: ./artifacts/*.jar

build.gradle.kts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,19 @@ plugins {
1414
}
1515

1616
repositories {
17+
mavenLocal()
1718
mavenCentral()
1819
maven("https://repo.xenondevs.xyz/releases")
19-
mavenLocal { content { includeGroup("org.spigotmc") } }
20+
21+
// include xenondevs-nms repository if requested
22+
if (project.hasProperty("xenondevsNms")) {
23+
maven("https://repo.papermc.io/repository/maven-public/") // authlib, brigadier, etc.
24+
maven {
25+
name = "xenondevsNms"
26+
url = uri("https://repo.xenondevs.xyz/nms/")
27+
credentials(PasswordCredentials::class)
28+
}
29+
}
2030
}
2131

2232
dependencies {

settings.gradle.kts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,19 @@ pluginManagement {
2121
repositories {
2222
mavenLocal()
2323
mavenCentral()
24+
gradlePluginPortal()
2425
maven("https://repo.xenondevs.xyz/releases")
26+
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") // for nova-gradle-plugin
27+
}
28+
}
29+
30+
plugins {
31+
id("com.gradle.enterprise") version "3.13"
32+
}
33+
34+
gradleEnterprise {
35+
buildScan {
36+
termsOfServiceUrl = "https://gradle.com/terms-of-service"
37+
termsOfServiceAgree = "yes"
2538
}
2639
}

0 commit comments

Comments
 (0)