Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit afe9caf

Browse files
committed
Update Gradle configuration for JDK 21 and adjust Lombok setup
1 parent 89c0d20 commit afe9caf

File tree

5 files changed

+70
-7
lines changed

5 files changed

+70
-7
lines changed

.github/workflows/javadoc.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Deploy Javadoc to GitHub Pages (Gradle)
2+
3+
on:
4+
push: { branches: ["master"] }
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Check out code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up JDK 21
20+
uses: actions/setup-java@v4
21+
with:
22+
distribution: temurin
23+
java-version: '21'
24+
25+
- name: Grant execute rights to Gradle
26+
run: chmod +x ./gradlew
27+
28+
- name: Build Javadoc
29+
run: ./gradlew javadoc
30+
31+
- name: Upload GitHub Pages artifact
32+
uses: actions/upload-pages-artifact@v3
33+
with:
34+
path: build/docs/javadoc
35+
36+
deploy:
37+
needs: build
38+
runs-on: ubuntu-latest
39+
environment:
40+
name: github-pages
41+
url: ${{ steps.deploy.outputs.page_url }}
42+
steps:
43+
- name: Deploy to GitHub Pages
44+
id: deploy
45+
uses: actions/deploy-pages@v4

.idea/gradle.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
22
id 'java-library'
33
id 'maven-publish'
4-
id "io.papermc.paperweight.userdev" version "2.0.0-beta.18"
4+
id "io.papermc.paperweight.userdev" version "2.0.0-beta.17"
55
id "com.gradleup.shadow" version "8.3.8"
66
id 'com.gorylenko.gradle-git-properties' version '2.4.1'
77
}
@@ -37,6 +37,10 @@ repositories {
3737
}
3838
}
3939

40+
configurations {
41+
delombok
42+
}
43+
4044
dependencies {
4145
paperweight.paperDevBundle("1.19.1-R0.1-SNAPSHOT")
4246

@@ -58,6 +62,20 @@ dependencies {
5862
compileOnly 'me.clip:placeholderapi:2.11.6'
5963
compileOnly "com.github.MilkBowl:VaultAPI:1.7"
6064
compileOnly 'net.luckperms:api:5.4'
65+
66+
delombok 'org.projectlombok:lombok:1.18.38'
67+
}
68+
69+
tasks.register('delombok', JavaExec) {
70+
main = 'lombok.launch.Main'
71+
classpath = configurations.delombok
72+
args = ['delombok', 'src/main/java', '-d', "$buildDir/delombok"]
73+
}
74+
75+
javadoc {
76+
dependsOn delombok
77+
source = fileTree("$buildDir/delombok")
78+
classpath = sourceSets.main.compileClasspath
6179
}
6280

6381
subprojects {
@@ -97,10 +115,10 @@ subprojects {
97115

98116
java {
99117
// Use Java 21
100-
sourceCompatibility = JavaVersion.VERSION_23
101-
targetCompatibility = JavaVersion.VERSION_23
118+
sourceCompatibility = JavaVersion.VERSION_21
119+
targetCompatibility = JavaVersion.VERSION_21
102120
toolchain {
103-
languageVersion.set(JavaLanguageVersion.of(23))
121+
languageVersion.set(JavaLanguageVersion.of(21))
104122
}
105123
withJavadocJar()
106124
withSourcesJar()

src/main/java/gg/nextforge/NextCorePlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void enable(boolean isReload) {
5050
}
5151
messagesFile = getConfigManager().loadConfig("messages.yml");
5252

53-
getTextManager().placeholder("prefix", _ -> messagesFile.getString("general.prefix", "<dark_gray>[<gradient:aqua:dark_aqua>ɴᴇxᴛᴄᴏʀᴇ<dark_gray>]</gradient></dark_gray>"));
53+
getTextManager().placeholder("prefix", unused -> messagesFile.getString("general.prefix", "<dark_gray>[<gradient:aqua:dark_aqua>ɴᴇxᴛᴄᴏʀᴇ<dark_gray>]</gradient></dark_gray>"));
5454

5555
new NextCoreCommand(this);
5656

0 commit comments

Comments
 (0)