-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
117 lines (100 loc) · 3.3 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
116
117
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("java")
id("java-library")
id("maven-publish")
id("signing")
id("com.gradleup.shadow") version "8.3.1"
}
repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://nexus.scarsz.me/content/groups/public/")
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://repo1.maven.org/maven2/")
maven("https://repo.codemc.org/repository/maven-public/")
}
dependencies {
compileOnly("com.discordsrv:discordsrv:1.28.1")
compileOnly("io.papermc.paper:paper-api:1.21.1-R0.1-SNAPSHOT")
implementation("commons-io:commons-io:2.16.1")
implementation("dev.jorel:commandapi-bukkit-shade:9.5.3")
}
tasks.withType<ShadowJar> {
dependencies {
include(dependency("dev.jorel:commandapi-bukkit-shade:9.5.3"))
include(dependency("org.bstats:bstats-bukkit:3.0.3"))
}
relocate("dev.jorel.commandapi", "com.buape.kiaimc.commandapi")
}
tasks.named<ShadowJar>("shadowJar") {
archiveClassifier.set("")
}
tasks.build {
dependsOn("shadowJar")
}
group = "com.buape"
version = "2.1.0"
description = "KiaiMC - Integrating Kiai's extensive leveling system with Minecraft servers"
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
pom {
name.set("KiaiMC API")
description.set("KiaiMC - Integrating Kiai's extensive leveling system with Minecraft servers")
url.set("https://github.com/buape/kiaimc")
licenses {
license {
name.set("GNU General Public License, Version 3.0")
url.set("https://www.gnu.org/licenses/gpl-3.0.html")
}
}
developers {
developer {
id.set("buape")
name.set("Buape Studios")
email.set("[email protected]")
}
developer {
id.set("thewilloftheshadow")
name.set("Shadow")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:git://github.com/buape/kiaimc.git")
developerConnection.set("scm:git:ssh://github.com:buape/kiaimc.git")
url.set("https://github.com/buape/kiaimc")
}
}
}
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/buape/kiaimc")
credentials {
username = System.getenv("USERNAME")
password = System.getenv("TOKEN")
}
}
}
}
signing {
useInMemoryPgpKeys(
System.getenv("GPG_KEY_ID"),
System.getenv("GPG_KEY"),
System.getenv("GPG_KEY_PASSWORD")
)
sign(publishing.publications["mavenJava"])
}
tasks.processResources {
filesMatching("plugin.yml") {
expand("version" to project.version)
}
}