-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
76 lines (61 loc) · 1.72 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
plugins {
java
id("net.minecrell.plugin-yml.bukkit") version "0.5.1"
id("com.github.johnrengelman.shadow") version "7.1.1"
id("xyz.jpenilla.run-paper") version "1.0.6"
}
group = "co.technove"
version = "1.0.1"
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(16))
}
repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://jitpack.io")
}
dependencies {
compileOnly("org.jetbrains:annotations:22.0.0")
compileOnly("org.spigotmc:spigot-api:1.18.1-R0.1-SNAPSHOT")
implementation("com.github.TECHNOVE:Flare:34637f3f87")
implementation("com.github.oshi:oshi-core:6.1.2")
}
bukkit {
main = "co.technove.flareplugin.FlarePlugin"
apiVersion = "1.16"
authors = listOf("PaulBGD")
version = rootProject.version as String
commands {
register("flare") {
description = "Flare profiling command"
aliases = listOf("profiler", "sampler")
permission = "flareplugin.command"
usage = "/flare"
}
}
}
tasks {
build {
dependsOn(shadowJar)
}
compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(16)
}
javadoc {
options.encoding = Charsets.UTF_8.name()
}
processResources {
filteringCharset = Charsets.UTF_8.name()
}
runServer {
minecraftVersion("1.16.5")
}
shadowJar {
classifier = ""
}
}
tasks.create<com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation>("relocateShadowJar") {
target = tasks["shadowJar"] as com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
prefix = "co.technove.flareplugin.lib"
}