-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
94 lines (78 loc) · 2.35 KB
/
build.gradle
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
plugins {
id("java-library")
id("xyz.jpenilla.run-paper") version "1.0.6"
id("io.papermc.paperweight.userdev") version "1.5.5"
id("com.github.johnrengelman.shadow") version "7.1.2"
id("net.minecrell.plugin-yml.bukkit") version "0.5.2"
}
import java.nio.charset.Charset
import java.nio.charset.StandardCharsets
repositories {
gradlePluginPortal()
maven { url = uri("https://libraries.minecraft.net/") }
maven { url = uri("https://maven.fabricmc.net/") }
maven { url = uri("https://papermc.io/repo/repository/maven-public/") }
maven { url = uri("https://repo.kenzie.mx/releases") }
maven { url = uri("https://gitlab.com/api/v4/projects/18568066/packages/maven") }
}
group = 'blue.lhf'
version = '0.4.1'
int javaVersion = 17
String author = "bluelhf"
Charset charset = StandardCharsets.UTF_8
def ver = [
major : "1",
minor : "20",
patch : "4",
revision: "0.1",
tag : "SNAPSHOT"
]
String serverImpl = "${ver.major}.${ver.minor}"
if (ver.patch != null) serverImpl += "." + ver.patch
if (ver.revision != null) serverImpl += "-R" + ver.revision
if (ver.tag != null) serverImpl += "-" + ver.tag
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(javaVersion))
}
dependencies {
implementation 'org.reflections:reflections:0.10.2'
implementation "org.byteskript:byteskript:1.0.40"
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:${serverImpl}")
implementation "com.moderocky:Commander:3.0.0-SNAPSHOT"
}
tasks {
assemble {
dependsOn(reobfJar)
}
compileJava {
compileJava.options.encoding = charset.name()
options.release.set(javaVersion)
}
javadoc {
options.encoding = charset.name()
}
processResources {
filteringCharset = charset.name()
}
}
bukkit {
main = "${group}.${project.name.toLowerCase()}.BytePaper"
apiVersion = "${ver.major}.${ver.minor}"
authors = [author]
commands {
bytepaper {
aliases = ["byteskript", "bp", "bsk"]
description = "Manage BytePaper"
permission = "bp.manage"
}
}
permissions {
"bp.*" {
children = ["bp.manage"]
}
"bp.manage" {
description = "Allows you to use the BytePaper management command"
setDefault("OP")
}
}
}