-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
86 lines (72 loc) · 2.47 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
import com.vanniktech.maven.publish.SonatypeHost
plugins {
id "java-library"
id "com.vanniktech.maven.publish" version "0.29.0"
}
allprojects {
group = "dev.velix"
version = "1.5.1"
ext {
def kyoriVersion = "4.17.0"
def kyoriPlatformVersion = "4.3.4"
kyori = { String module ->
return "net.kyori:adventure-" + module + ":" + kyoriVersion
}
kyoriPlatform = { String module ->
return "net.kyori:adventure-" + module + ":" + kyoriPlatformVersion
}
KyoriModule = [
API : "api",
MINI_MESSAGE: "text-minimessage",
BUKKIT : "platform-bukkit",
BUNGEE : "platform-bungeecord",
SPONGE : "platform-spongeapi"
]
}
}
subprojects {
plugins.apply("java-library")
if (project.name == "paper") {
return
}
plugins.apply("com.vanniktech.maven.publish")
mavenPublishing {
coordinates(group as String, "imperat-" + name, version as String)
pom {
name = "Imperat"
description = "A modern customizable command framework."
inceptionYear = "2024"
url = "https://github.com/VelixDevelopments/Imperat/"
licenses {
license {
name = 'MIT'
url = "https://opensource.org/licenses/MIT"
distribution = "https://mit-license.org/"
}
}
developers {
developer {
id = "mqzn"
name = "Mqzn"
url = "https://github.com/Mqzn/"
}
developer {
id = "iiahmedyt"
name = "iiAhmedYT"
url = "https://github.com/iiAhmedYT/"
}
}
scm {
url = "https://github.com/VelixDevelopments/Imperat/"
connection = "scm:git:git://github.com/VelixDevelopments/Imperat.git"
developerConnection = "scm:git:ssh://git@github.com/VelixDevelopments/Imperat.git"
}
}
if (!gradle.startParameter.taskNames.any { (it == "publishToMavenLocal") }) {
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()
}
compileJava.options.encoding = "UTF-8"
compileJava.options.compilerArgs += ["-parameters"]
}
}