-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
115 lines (92 loc) · 2.93 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
import groovy.lang.Closure
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
java
`maven-publish`
id("io.papermc.paperweight.userdev") version "1.5.5"
id("xyz.jpenilla.run-paper") version "2.0.1" // Adds runServer and runMojangMappedServer tasks for testing
id("net.minecrell.plugin-yml.bukkit") version "0.6.0" // Generates plugin.yml
id("com.github.johnrengelman.shadow") version "7.1.2" // Shadow PluginBase
}
repositories {
mavenLocal()
maven {
url = uri("https://repo.papermc.io/repository/maven-public/")
}
maven {
url = uri("https://jitpack.io")
}
maven {
url = uri("https://oss.sonatype.org/content/groups/public/")
}
maven {
url = uri("https://repo.md-5.net/content/groups/public/")
}
maven {
url = uri("https://repo.extendedclip.com/content/repositories/placeholderapi/")
}
maven {
url = uri("https://repo.dmulloy2.net/repository/public/")
}
maven {
url = uri("https://repo.maven.apache.org/maven2/")
}
maven {
url = uri("https://maven.playpro.com")
}
}
dependencies {
paperweight.paperDevBundle("${project.property("minecraft_version")}")
//compileOnly(files("libs/CMILib1.4.3.5.jar"))
//compileOnly(files("libs/Residence5.1.4.0.jar"))
/*
implementation("org.bstats:bstats-bukkit:${project.property("bstats_version")}")
{
exclude("com.google.code.gson", "gson")
}
*/
implementation("com.github.XiaMoZhiShi:PluginBase:${project.property("pluginbase_version")}")
{
exclude("com.google.code.gson", "gson")
}
//compileOnly("me.clip:placeholderapi:${project.property("papi_version")}")
compileOnly("net.luckperms:api:${project.property("lp_version")}")
}
group = "xiamomc"
version = "${project.property("project_version")}"
description = "A badge plugin for XiamoMC server"
java.sourceCompatibility = JavaVersion.VERSION_17
bukkit {
load = BukkitPluginDescription.PluginLoadOrder.POSTWORLD
main = "xiamomc.badges.XiamoBadges"
apiVersion = "1.20"
authors = listOf("MATRIX-feather")
depend = listOf()
softDepend = listOf()
version = "${project.property("project_version")}"
prefix = "XiamoBadges"
name = "XiamoBadges"
foliaSupported = true
commands {
var mainCommand = register("badge").get();
//mainCommand.aliases = listOf("fe");
}
val permissionRoot = "xiamomc.badges"
permissions {
//register("${permissionRoot}.cmd").get().default = BukkitPluginDescription.Permission.Default.OP;
}
}
tasks.build {
dependsOn(tasks.shadowJar, tasks.reobfJar)
}
tasks.shadowJar {
minimize()
relocate("xiamomc.pluginbase", "xyz.nifeather.fexp.shaded.pluginbase")
relocate("org.bstats", "xyz.nifeather.fexp.shaded.bstats")
}
tasks.withType<JavaCompile>() {
options.encoding = "UTF-8"
}