Skip to content

Commit b4a9082

Browse files
committed
Switch to PaperWeight UserDev
1 parent 2d46c77 commit b4a9082

File tree

16 files changed

+356
-1125
lines changed

16 files changed

+356
-1125
lines changed

.gitignore

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11

22
#################
3-
## IDEs
3+
## IDEs and builds
44
#################
55

66
.project
77
.metadata
8-
bin/**
9-
/target
10-
tmp/**
11-
tmp/**/*
8+
bin/
9+
target/
10+
build/
11+
tmp/
1212
*.tmp
1313
*.bak
1414
*.bat
@@ -19,6 +19,7 @@ local.properties
1919
.settings/
2020
.loadpath
2121
.idea/
22+
.gradle/
2223
BetterEnderChest.iml
2324

2425
# Locally stored "Eclipse launch configurations"
@@ -47,4 +48,5 @@ Desktop.ini
4748
.DS_Store
4849

4950

50-
.vscode/settings.json
51+
.vscode/settings.json
52+

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ Minecraft Spigot plugin to add functionality to Ender Chests.
1515
* API for other plugin developers, see below
1616

1717
# Compiling BetterEnderChest
18-
BetterEnderChest uses [Maven](http://maven.apache.org/download.cgi). After you have installed Maven (make sure
18+
BetterEnderChest uses [Gradle](http://maven.apache.org/download.cgi). After you have installed Java (make sure
1919
to include it in your systems PATH environment variable), run the following command:
2020

21-
mvn install
21+
gradlew build
2222

2323
# Pull requests
2424
Pull requests are greatly appreciated. Just try to follow my formatting (spaces, not tabs and opening brackets

build.gradle.kts

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
import org.apache.tools.ant.filters.ReplaceTokens
2+
3+
plugins {
4+
`java-library`
5+
`maven-publish`
6+
id("io.papermc.paperweight.userdev") version "2.0.0-beta.16"
7+
}
8+
9+
10+
repositories {
11+
mavenCentral()
12+
13+
maven {
14+
url = uri("https://rutgerkok.nl/repo")
15+
}
16+
17+
maven {
18+
url = uri("https://repo.codemc.org/repository/maven-public/")
19+
}
20+
21+
maven {
22+
url = uri("https://ci.mg-dev.eu/plugin/repository/everything")
23+
}
24+
25+
maven {
26+
url = uri("https://repo.onarandombox.com/content/groups/public/")
27+
}
28+
29+
maven {
30+
url = uri("https://repo.codemc.io/repository/nms/")
31+
}
32+
33+
maven {
34+
url = uri("https://repo.maven.apache.org/maven2/")
35+
}
36+
}
37+
38+
dependencies {
39+
testImplementation("junit:junit:4.13.1")
40+
paperweight.paperDevBundle("1.21.4-R0.1-SNAPSHOT")
41+
compileOnly("com.bergerkiller.bukkit:MyWorlds:1.12-v2") {
42+
exclude(group="org.spigotmc") // Don't let Spigot API overwrite Paper
43+
}
44+
compileOnly("com.griefcraft:LWC:4.3.2")
45+
compileOnly("com.onarandombox.multiversecore:Multiverse-Core:4.1.0")
46+
compileOnly("com.onarandombox.multiverseinventories:Multiverse-Inventories:3.0.0")
47+
compileOnly("me.drayshak.worldinventories:WorldInventories:1.7.0")
48+
compileOnly("nl.rutgerkok:blocklocker:1.9.2")
49+
compileOnly("org.yi.acru.bukkit:Lockette:1.7.12")
50+
compileOnly("uk.co.tggl.pluckerpluck.multiinv:MultiInv:3.3.0")
51+
}
52+
53+
group = "nl.rutgerkok.betterenderchest"
54+
version = "2.7-SNAPSHOT"
55+
description = "BetterEnderChest"
56+
java.sourceCompatibility = JavaVersion.VERSION_21
57+
58+
// For supporting Spigot
59+
paperweight.reobfArtifactConfiguration = io.papermc.paperweight.userdev.ReobfArtifactConfiguration.REOBF_PRODUCTION
60+
tasks.assemble {
61+
dependsOn(tasks.reobfJar)
62+
}
63+
64+
publishing {
65+
publications.create<MavenPublication>("maven") {
66+
from(components["java"])
67+
}
68+
}
69+
70+
tasks.withType<JavaCompile>() {
71+
options.encoding = "UTF-8"
72+
}
73+
74+
tasks.withType<Javadoc>() {
75+
options.encoding = "UTF-8"
76+
}

gradle.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties
2+
3+
org.gradle.configuration-cache=true
4+

gradle/wrapper/gradle-wrapper.jar

42.7 KB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

gradlew

Lines changed: 251 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)