-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
106 lines (95 loc) · 3.33 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
import net.minecrell.pluginyml.paper.PaperPluginDescription
plugins {
alias(idofrontLibs.plugins.mia.kotlin.jvm)
alias(idofrontLibs.plugins.kotlinx.serialization)
alias(idofrontLibs.plugins.mia.papermc)
alias(idofrontLibs.plugins.mia.nms)
alias(idofrontLibs.plugins.mia.copyjar)
alias(idofrontLibs.plugins.mia.publication)
alias(idofrontLibs.plugins.mia.autoversion)
alias(idofrontLibs.plugins.compose.compiler)
id("net.minecrell.plugin-yml.paper") version "0.6.0"
}
repositories {
mavenCentral()
maven("https://repo.mineinabyss.com/releases")
maven("https://repo.mineinabyss.com/snapshots")
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
maven("https://mvn.lumine.io/repository/maven-public/") // Model Engine
maven("https://mvn.intellectualsites.com/content/repositories/releases/") // FAWE
maven("https://repo.oraxen.com/releases") // ProtectionLib
mavenLocal()
}
dependencies {
// MineInAbyss platform
compileOnly(idofrontLibs.bundles.idofront.core)
compileOnly(idofrontLibs.idofront.nms)
compileOnly(idofrontLibs.kotlinx.serialization.json)
compileOnly(idofrontLibs.kotlinx.serialization.kaml)
compileOnly(idofrontLibs.kotlinx.coroutines)
compileOnly(idofrontLibs.minecraft.mccoroutine)
// Geary platform
compileOnly(libs.geary.papermc)
compileOnly(libs.guiy)
// Other plugins
compileOnly(idofrontLibs.minecraft.plugin.modelengine)
compileOnly(idofrontLibs.minecraft.plugin.fawe.core)
compileOnly(idofrontLibs.minecraft.plugin.fawe.bukkit) { isTransitive = false }
compileOnly(idofrontLibs.minecraft.customblockdata)
compileOnly(idofrontLibs.creative.api)
compileOnly(idofrontLibs.creative.serializer.minecraft)
compileOnly(libs.minecraft.plugin.axiompaper)
implementation(libs.minecraft.plugin.protectionlib)
}
tasks {
shadowJar {
//relocate("io.th0rgal.protectionlib", "com.mineinabyss.shaded.protectionlib")
}
}
kotlin {
compilerOptions {
freeCompilerArgs.addAll(
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
"-opt-in=kotlin.ExperimentalUnsignedTypes",
"-Xcontext-receivers"
)
}
}
paper {
main = "com.mineinabyss.blocky.BlockyPlugin"
bootstrapper = "com.mineinabyss.blocky.BlockyBootstrap"
name = "Blocky"
prefix = "Blocky"
val version: String by project
this.version = version
authors = listOf("boy0000")
apiVersion = "1.21"
bootstrapDependencies {
register("Idofront") {
required = true
load = PaperPluginDescription.RelativeLoadOrder.BEFORE
}
}
serverDependencies {
register("Geary") {
required = true
load = PaperPluginDescription.RelativeLoadOrder.BEFORE
joinClasspath = true
}
register("Guiy") {
required = false
load = PaperPluginDescription.RelativeLoadOrder.BEFORE
joinClasspath = true
}
register("ModelEngine") {
required = false
load = PaperPluginDescription.RelativeLoadOrder.BEFORE
joinClasspath = true
}
register("AxiomPaper") {
required = false
load = PaperPluginDescription.RelativeLoadOrder.BEFORE
joinClasspath = true
}
}
}