This repository has been archived by the owner on Oct 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
87 lines (67 loc) · 2.21 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
import xyz.jpenilla.resourcefactory.bukkit.BukkitPluginYaml
plugins {
java
`java-library`
`maven-publish`
id("com.github.johnrengelman.shadow") version "7.1.2"
id("io.papermc.paperweight.userdev") version "1.7.1"
id("xyz.jpenilla.resource-factory-bukkit-convention") version "1.1.1"
id("xyz.jpenilla.run-paper") version "2.3.0"
id("io.github.goooler.shadow") version "8.1.7"
}
group = "foundation.esoteric"
version = "0.2.2"
description = "The core plugin of The Slimy Swamp Minecraft server."
val projectNameString = rootProject.name
val projectGroupString = group.toString()
val projectVersionString = version.toString()
val javaVersion = 21
val javaVersionEnumMember = JavaVersion.valueOf("VERSION_$javaVersion")
java {
sourceCompatibility = javaVersionEnumMember
targetCompatibility = javaVersionEnumMember
toolchain.languageVersion.set(JavaLanguageVersion.of(javaVersion))
}
dependencies {
implementation("org.mongodb", "mongodb-driver-sync", "5.1.1")
implementation("dev.jorel", "commandapi-bukkit-shade-mojang-mapped", "9.5.2")
implementation("cloud.commandframework", "cloud-paper", "1.8.4")
implementation("net.dv8tion", "JDA", "5.0.0")
paperweight.paperDevBundle("1.21-R0.1-SNAPSHOT")
}
tasks {
build {
dependsOn(shadowJar)
}
shadowJar {
archiveFileName.set("$projectNameString-$projectVersionString.jar")
}
compileJava {
options.release.set(javaVersion)
}
javadoc {
options.encoding = Charsets.UTF_8.name()
}
}
bukkitPluginYaml {
name = "TSSCore"
description = project.description
authors.addAll("Esoteric Foundation", "Esoteric Enderman")
version = projectVersionString
apiVersion = "1.21"
main = "${project.group}.tss.minecraft.plugins.core.${name.get()}Plugin"
load = BukkitPluginYaml.PluginLoadOrder.STARTUP
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
groupId = projectGroupString
artifactId = projectNameString
version = projectVersionString
}
}
}
tasks.named("publishMavenJavaPublicationToMavenLocal") {
dependsOn(tasks.named("build"))
}