-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
75 lines (61 loc) · 1.92 KB
/
build.gradle.kts
File metadata and controls
75 lines (61 loc) · 1.92 KB
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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
plugins {
id("io.papermc.paperweight.userdev") version "1.7.3"
id("xyz.jpenilla.run-paper") version "2.3.1"
id("net.minecrell.plugin-yml.bukkit") version "0.6.0"
id("io.github.goooler.shadow") version "8.1.8"
kotlin("jvm") version "2.0.21"
}
group = properties["group"] as String
version = properties["version"] as String
description = properties["description"] as String
val gameVersion by properties
val foliaSupport = properties["foliaSupport"] as String == "true"
val projectName = properties["name"] as String
repositories {
mavenCentral()
maven("https://repo.techscode.com/repository/techscode-apis/")
}
dependencies {
paperweight.paperDevBundle("${gameVersion}-R0.1-SNAPSHOT")
implementation("net.kyori:adventure-text-minimessage:4.17.0")
implementation("dev.jorel:commandapi-bukkit-shade-mojang-mapped:9.5.2")
implementation("dev.jorel:commandapi-bukkit-kotlin:9.5.2")
implementation("org.jetbrains.kotlin:kotlin-stdlib")
implementation("me.TechsCode:UltraEconomyAPI:1.1.2")
}
java {
toolchain.languageVersion = JavaLanguageVersion.of(21)
}
tasks.withType<ShadowJar> {
manifest {
attributes["paperweight-mappings-namespace"] = "spigot"
}
relocate("dev.jorel.commandapi", "net.crystopia.craftattack.commandapi")
}
tasks {
assemble {
dependsOn(shadowJar)
dependsOn(reobfJar)
}
compileJava {
options.encoding = "UTF-8"
options.release.set(21)
}
compileKotlin {
kotlinOptions.jvmTarget = "21"
}
}
kotlin {
jvmToolchain(21)
}
bukkit {
main = "$group.${projectName.lowercase()}.${projectName}"
apiVersion = "1.16"
foliaSupported = foliaSupport
// Optionals
load = BukkitPluginDescription.PluginLoadOrder.STARTUP
depend = listOf()
softDepend = listOf()
}