-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
70 lines (61 loc) · 2.51 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
plugins {
id("io.github.goooler.shadow") version "8.1.7"
id ("org.jetbrains.kotlin.jvm") version "2.0.0"
alias(idofrontLibs.plugins.kotlinx.serialization)
alias(idofrontLibs.plugins.mia.copyjar)
}
val pluginVersion: String by project
group = "com.hibiscusmc"
version = pluginVersion
repositories {
mavenCentral()
gradlePluginPortal()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://mvn.lumine.io/repository/maven-public/") { metadataSources { artifact() } }// MythicMobs
maven("https://jitpack.io")
maven("https://repo.nexomc.com/releases")
maven("https://repo.mineinabyss.com/releases")
maven("https://repo.mineinabyss.com/snapshots")
mavenLocal()
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.21.3-R0.1-SNAPSHOT")
compileOnly("com.nexomc:nexo:0.7.0")
compileOnly("com.github.LoneDev6:api-itemsadder:3.4.1e")
compileOnly("io.lumine:Mythic-Dist:5.7.2")
compileOnly("io.lumine:MythicCrucible:2.0.0")
compileOnly("com.mineinabyss:geary-papermc:0.30.17")
implementation("dev.triumphteam:triumph-gui:3.1.10") { exclude("net.kyori") }
implementation(idofrontLibs.kotlin.stdlib)
implementation(idofrontLibs.kotlinx.serialization.json)
implementation(idofrontLibs.kotlinx.serialization.kaml)
implementation(idofrontLibs.idofront.di)
implementation(idofrontLibs.idofront.commands)
implementation(idofrontLibs.idofront.config)
implementation(idofrontLibs.idofront.text.components)
implementation(idofrontLibs.idofront.logging)
implementation(idofrontLibs.idofront.serializers)
implementation(idofrontLibs.idofront.util)
}
kotlin {
jvmToolchain(21)
}
val buildPath = project.findProperty("plugin_path") as? String?
copyJar {
this.destPath.set(buildPath ?: project.path)
this.jarName.set("HMCColor-${pluginVersion}.jar")
this.excludePlatformDependencies.set(false)
}
tasks {
shadowJar {
filesMatching(arrayOf("plugin.yml").asIterable()) {
expand(mapOf("version" to pluginVersion))
}
relocate("dev.triumphteam.gui", "com.hibiscusmc.hmccolor.shaded.gui")
relocate("org.spongepowered.configurate", "com.hibiscusmc.hmccolor.shaded.configurate")
relocate("org.bstats", "com.hibiscusmc.hmccolor.shaded.bstats")
relocate("kotlin", "com.hibiscusmc.hmccolor.shaded.kotlin")
relocate("org.jetbrains", "com.hibiscusmc.hmccolor.shaded.jetbrains")
relocate("com.mineinabyss.idofront", "com.hibiscusmc.hmccolor.shaded.idofront")
}
}