-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
99 lines (79 loc) · 2.59 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
import io.papermc.paperweight.userdev.ReobfArtifactConfiguration
import net.minecrell.pluginyml.paper.PaperPluginDescription
plugins {
id("com.mineinabyss.conventions.kotlin.jvm")
id("com.mineinabyss.conventions.papermc")
id("com.mineinabyss.conventions.copyjar")
id("com.mineinabyss.conventions.publication")
id("com.mineinabyss.conventions.autoversion")
id("xyz.jpenilla.run-paper") version "2.0.1" // Adds runServer and runMojangMappedServer tasks for testing
id("net.minecrell.plugin-yml.paper") version "0.6.0"
id("io.papermc.paperweight.userdev") version "1.7.1"
}
paperweight.reobfArtifactConfiguration.set(ReobfArtifactConfiguration.MOJANG_PRODUCTION)
allprojects {
apply(plugin = "java")
version = rootProject.version
repositories {
maven("https://repo.mineinabyss.com/releases")
maven("https://repo.mineinabyss.com/snapshots")
mavenLocal()
}
dependencies {
implementation("com.jeff-media:MorePersistentDataTypes:2.4.0")
}
}
dependencies {
// MineInAbyss platform
compileOnly(idofrontLibs.bundles.idofront.core)
compileOnly(idofrontLibs.kotlinx.serialization.json)
compileOnly(idofrontLibs.kotlinx.serialization.kaml)
compileOnly(idofrontLibs.kotlinx.coroutines)
compileOnly(idofrontLibs.minecraft.mccoroutine)
// Shaded
paperweight.paperDevBundle("1.21-R0.1-SNAPSHOT") //NMS
implementation(project(path = ":core"))
implementation(project(path = ":v1_20_R4"))
implementation(project(path = ":v1_21_R1"))
}
tasks {
assemble {
dependsOn(reobfJar)
}
compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(21)
}
javadoc {
options.encoding = Charsets.UTF_8.name()
}
processResources {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
filteringCharset = Charsets.UTF_8.name()
}
runServer {
minecraftVersion("1.21")
}
shadowJar {
dependsOn(":v1_20_R4:reobfJar")
//relocate("com.jeff_media.morepersistentdatatypes", "com.mineinabyss.shaded.morepersistentdatatypes")
archiveFileName.set("Emojy.jar")
}
build.get().dependsOn(shadowJar)
}
paper {
main = "com.mineinabyss.emojy.EmojyPlugin"
name = "Emojy"
prefix = "Emojy"
val version: String by project
this.version = version
authors = listOf("boy0000")
apiVersion = "1.20"
serverDependencies {
register("Idofront") {
required = true
load = PaperPluginDescription.RelativeLoadOrder.BEFORE
joinClasspath = true
}
}
}