-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
84 lines (69 loc) · 2.2 KB
/
build.gradle.kts
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
76
77
78
79
80
81
82
83
84
plugins {
`java-library`
`maven-publish`
id("com.gradleup.shadow") version "8.3.0"
}
group = "me.softik.nerochat"
version = "3.0.0-SNAPSHOT"
description = "An advanced chat plugin for survival/anarchy servers."
var url = "https://github.com/xGinko/NeroChat"
repositories {
mavenCentral()
maven {
url = uri("https://papermc.io/repo/repository/maven-public/")
}
maven {
url = uri("https://repo.codemc.org/repository/maven-public")
}
maven {
url = uri("https://repo.extendedclip.com/content/repositories/placeholderapi/")
}
maven {
url = uri("https://ci.pluginwiki.us/plugin/repository/everything/")
}
}
dependencies {
compileOnly(libs.com.destroystokyo.paper.paper.api)
api(libs.org.bstats.bstats.bukkit)
api(libs.com.github.thatsmusic99.configurationmaster.api)
// FuzzyWuzzy for string comparison
api(libs.me.xdrop.fuzzywuzzy)
// Fast Caching
api(libs.com.github.ben.manes.caffeine.caffeine)
api(libs.com.ibm.icu.icu4j)
// Adventure API
api(libs.net.kyori.adventure.text.minimessage)
api(libs.net.kyori.adventure.platform.bukkit)
api(libs.net.kyori.adventure.text.serializer.gson)
compileOnly(libs.com.google.code.findbugs.jsr305)
compileOnly(libs.me.clip.placeholderapi)
compileOnly(libs.org.projectlombok.lombok)
annotationProcessor(libs.org.projectlombok.lombok)
}
tasks {
withType<JavaCompile> {
options.encoding = "UTF-8"
}
configure<JavaPluginExtension> {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
build.configure {
dependsOn(shadowJar)
}
shadowJar {
archiveFileName = "${project.name}-${project.version}.${archiveExtension.get()}"
exclude("META-INF/**")
relocate("org.bstats", "me.softik.nerochat.shade.bstats")
relocate("com.github.benmanes.caffeine", "me.softik.nerochat.shade.caffeine")
}
processResources {
filesMatching("**/plugin.yml") {
expand(
"version" to project.version,
"description" to project.description,
"url" to url
)
}
}
}