This repository was archived by the owner on Mar 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
75 lines (66 loc) · 2.06 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
75 lines (66 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
plugins {
`java-library`
`maven-publish`
id("com.github.johnrengelman.shadow") version "7.1.2"
id("io.papermc.paperweight.userdev") version "1.6.3"
id("xyz.jpenilla.run-paper") version "2.2.4"
}
group = "dev.darkxx"
version = "1.0.3"
description = "FFA"
java.sourceCompatibility = JavaVersion.VERSION_17
repositories {
mavenLocal()
maven {
url = uri("https://repo.papermc.io/repository/maven-public/")
}
maven {
url = uri("https://oss.sonatype.org/content/groups/public/")
}
maven {
url = uri("https://repo.dmulloy2.net/nexus/repository/public/")
}
maven {
url = uri("https://repo.extendedclip.com/content/repositories/placeholderapi/")
}
maven {
url = uri("https://maven.enginehub.org/repo/")
}
maven {
url = uri("https://repo.maven.apache.org/maven2/")
}
maven("https://repo.xyris.fun/repository/maven-public/")
}
dependencies {
implementation("com.zaxxer:HikariCP:5.1.0")
implementation("org.apache.httpcomponents:httpmime:4.5.6")
compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT")
paperweight.paperDevBundle("1.20.4-R0.1-SNAPSHOT")
compileOnly("com.comphenix.protocol:ProtocolLib:5.1.0")
compileOnly("me.clip:placeholderapi:2.11.5")
compileOnly("com.sk89q.worldguard:worldguard-bukkit:7.0.8")
compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Core:2.7.0")
compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Bukkit:2.7.0")
compileOnly("dev.darkxx:XyrisKits-API:1.0.0")
}
tasks.build {
dependsOn(tasks.shadowJar)
}
publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
artifact(tasks["shadowJar"])
}
}
tasks.shadowJar {
minimize()
archiveFileName.set("${project.name}-${project.version}.jar")
relocate("com.zaxxer:HikariCP", "dev.darkxx.ffa.shaded.com.zaxxer:HikariCP")
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
project.buildDir = File(rootDir, "output")
tasks.withType<Javadoc> {
options.encoding = "UTF-8"
}