Skip to content

Commit 9c47413

Browse files
committed
Use Gradle
1 parent cb2a5af commit 9c47413

32 files changed

+594
-107
lines changed

.gitignore

Lines changed: 117 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,118 @@
1-
# Project exclude paths
2-
/target/
1+
# User-specific stuff
2+
.idea/
33

4-
.idea
5-
RandomSpawnPlus3.iml
4+
*.iml
5+
*.ipr
6+
*.iws
7+
8+
# IntelliJ
9+
out/
10+
# mpeltonen/sbt-idea plugin
11+
.idea_modules/
12+
13+
# JIRA plugin
14+
atlassian-ide-plugin.xml
15+
16+
# Compiled class file
17+
*.class
18+
19+
# Log file
20+
*.log
21+
22+
# BlueJ files
23+
*.ctxt
24+
25+
# Package Files #
26+
*.jar
27+
*.war
28+
*.nar
29+
*.ear
30+
*.zip
31+
*.tar.gz
32+
*.rar
33+
34+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
35+
hs_err_pid*
36+
37+
*~
38+
39+
# temporary files which can be created if a process still has a handle open of a deleted file
40+
.fuse_hidden*
41+
42+
# KDE directory preferences
43+
.directory
44+
45+
# Linux trash folder which might appear on any partition or disk
46+
.Trash-*
47+
48+
# .nfs files are created when an open file is removed but is still being accessed
49+
.nfs*
50+
51+
# General
52+
.DS_Store
53+
.AppleDouble
54+
.LSOverride
55+
56+
# Icon must end with two \r
57+
Icon
58+
59+
# Thumbnails
60+
._*
61+
62+
# Files that might appear in the root of a volume
63+
.DocumentRevisions-V100
64+
.fseventsd
65+
.Spotlight-V100
66+
.TemporaryItems
67+
.Trashes
68+
.VolumeIcon.icns
69+
.com.apple.timemachine.donotpresent
70+
71+
# Directories potentially created on remote AFP share
72+
.AppleDB
73+
.AppleDesktop
74+
Network Trash Folder
75+
Temporary Items
76+
.apdisk
77+
78+
# Windows thumbnail cache files
79+
Thumbs.db
80+
Thumbs.db:encryptable
81+
ehthumbs.db
82+
ehthumbs_vista.db
83+
84+
# Dump file
85+
*.stackdump
86+
87+
# Folder config file
88+
[Dd]esktop.ini
89+
90+
# Recycle Bin used on file shares
91+
$RECYCLE.BIN/
92+
93+
# Windows Installer files
94+
*.cab
95+
*.msi
96+
*.msix
97+
*.msm
98+
*.msp
99+
100+
# Windows shortcuts
101+
*.lnk
102+
103+
.gradle
104+
build/
105+
106+
# Ignore Gradle GUI config
107+
gradle-app.setting
108+
109+
# Cache of project
110+
.gradletasknamecache
111+
112+
**/build/
113+
114+
# Common working directory
115+
run/
116+
117+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
118+
!gradle-wrapper.jar

build.gradle

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
plugins {
2+
id 'com.github.johnrengelman.shadow' version '5.2.0'
3+
id 'java'
4+
}
5+
6+
group = 'systems.kscott'
7+
version = '5.0.0'
8+
9+
repositories {
10+
mavenCentral()
11+
maven {
12+
name = 'papermc-repo'
13+
url = 'https://repo.papermc.io/repository/maven-public/'
14+
}
15+
maven {
16+
name = 'sonatype'
17+
url = 'https://oss.sonatype.org/content/groups/public/'
18+
}
19+
maven {
20+
name "essentialsx-releases"
21+
url "https://repo.essentialsx.net/releases/"
22+
}
23+
maven { url = "https://repo.aikar.co/content/groups/aikar/" }
24+
maven { url = "https://hub.spigotmc.org/nexus/content/groups/public/" }
25+
maven { url 'https://jitpack.io' }
26+
}
27+
28+
dependencies {
29+
compileOnly 'io.papermc.paper:paper-api:1.19-R0.1-SNAPSHOT'
30+
compileOnly 'org.projectlombok:lombok:1.18.24'
31+
compileOnly 'net.essentialsx:EssentialsX:2.19.0'
32+
compileOnly 'net.luckperms:api:5.4'
33+
compileOnly "com.github.MilkBowl:VaultAPI:1.7"
34+
implementation "co.aikar:acf-paper:0.5.1-SNAPSHOT"
35+
implementation "io.papermc:paperlib:1.0.7"
36+
}
37+
38+
def targetJavaVersion = 17
39+
java {
40+
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
41+
sourceCompatibility = javaVersion
42+
targetCompatibility = javaVersion
43+
if (JavaVersion.current() < javaVersion) {
44+
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
45+
}
46+
}
47+
48+
tasks.withType(JavaCompile).configureEach {
49+
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
50+
options.release = targetJavaVersion
51+
}
52+
}
53+
54+
processResources {
55+
def props = [version: version]
56+
inputs.properties props
57+
filteringCharset 'UTF-8'
58+
filesMatching('plugin.yml') {
59+
expand props
60+
}
61+
}
62+
63+
compileJava {
64+
options.compilerArgs += ["-parameters"]
65+
options.fork = true
66+
options.forkOptions.executable = 'javac'
67+
}
68+
69+
shadowJar {
70+
relocate 'co.aikar.commands', 'systems.kscott.randomspawnplus.acf'
71+
relocate 'co.aikar.locales', 'systems.kscott.randomspawnplus.locales'
72+
relocate "io.papermc.lib", "systems.kscott.randomspawnplus.paperlib"
73+
}
74+
75+
build.dependsOn shadowJar

gradle.properties

Whitespace-only changes.

gradle/wrapper/gradle-wrapper.jar

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

0 commit comments

Comments
 (0)