This repository was archived by the owner on Oct 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
96 lines (76 loc) 路 2.18 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
96 lines (76 loc) 路 2.18 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("java-library")
id("com.github.johnrengelman.shadow") version "8.1.1"
id("net.minecrell.plugin-yml.bukkit") version "0.5.3"
id("xyz.jpenilla.run-paper") version "2.0.1"
}
group = "com.eternalcode"
version = "1.1.0"
repositories {
gradlePluginPortal()
mavenCentral()
mavenLocal()
maven { url = uri("https://papermc.io/repo/repository/maven-public/") }
maven { url = uri("https://repo.panda-lang.org/releases") }
maven { url = uri("https://repo.eternalcode.pl/releases") }
maven { url = uri("https://maven.enginehub.org/repo") }
}
dependencies {
// Spigot API
compileOnly("org.spigotmc:spigot-api:1.19.3-R0.1-SNAPSHOT")
// Kyori Adventure
implementation("net.kyori:adventure-platform-bukkit:4.3.0")
implementation("net.kyori:adventure-text-minimessage:4.13.0")
// LiteCommands
implementation("dev.rollczi.litecommands:bukkit:2.8.6")
// CDN
implementation("net.dzikoysk:cdn:1.14.4")
// bStats
implementation("org.bstats:bstats-bukkit:3.0.2")
// gitcheck
implementation("com.eternalcode:gitcheck:1.0.0")
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
bukkit {
main = "com.eternalcode.check.EternalCheck"
apiVersion = "1.13"
prefix = "EternalCheck"
author = "Osnixer"
name = "EternalCheck"
description = "A simple plugin for checking suspicious players"
version = "${project.version}"
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(8))
}
tasks {
runServer {
minecraftVersion("1.19.3")
}
}
tasks.withType<ShadowJar> {
archiveFileName.set("EternalCheck v${project.version}.jar")
exclude(
"org/intellij/lang/annotations/**",
"org/jetbrains/annotations/**",
"org/checkerframework/**",
"META-INF/**",
"javax/**"
)
mergeServiceFiles()
minimize()
val prefix = "com.eternalcode.check.libs"
listOf(
"panda",
"org.panda_lang",
"org.bstats",
"net.dzikoysk",
"net.kyori",
"dev.rollczi"
).forEach { pack ->
relocate(pack, "$prefix.$pack")
}
}