forked from PssbleTrngle/SliceAndDice-Fabric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
130 lines (108 loc) · 3.22 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
val mod_id: String by extra
val mod_version: String by extra
val qm_version: String by extra
val parchment_version: String by extra
val mc_version: String by extra
val create_version: String by extra
val night_config_version: String by extra
val forge_config_port_version: String by extra
val architectury_version: String by extra
val rei_version: String by extra
val farmers_delight_version: String by extra
val kubejs_version: String by extra
plugins {
id("com.possible-triangle.gradle") version ("0.1.4")
}
withKotlin()
fabric {
enableMixins()
dataGen()
mappings {
layered {
mappings("org.quiltmc:quilt-mappings:${mc_version}+build.${qm_version}:intermediary-v2")
parchment("org.parchmentmc.data:parchment-${mc_version}:${parchment_version}@zip")
officialMojangMappings { nameSyntheticMembers = false }
}
}
}
configure<BasePluginExtension> {
archivesName.set("$mod_id-fabric-${mod_version}")
}
apply(from = "https://raw.githubusercontent.com/PssbleTrngle/GradleHelper/main/repositories/create-fabric.build.kts")
repositories {
curseMaven()
modrinthMaven()
maven {
url = uri("https://maven.quiltmc.org/repository/release")
content {
includeGroup("org.quiltmc")
}
}
maven {
url = uri("https://maven.parchmentmc.org")
content {
includeGroup("org.parchmentmc.data")
}
}
maven {
url = uri("https://maven.shedaniel.me/")
content {
includeGroup("me.shedaniel")
includeGroup("me.shedaniel.cloth")
}
}
maven {
url = uri("https://maven.architectury.dev/")
content {
includeGroup("dev.architectury")
}
}
maven {
url = uri("https://maven.saps.dev/minecraft")
content {
includeGroup("dev.latvian.mods")
}
}
maven {
url = uri("https://maven.theillusivec4.top/")
content {
includeGroup("top.theillusivec4.curios")
}
}
}
mod {
includedMods.set(
listOf(
"com.electronwill.night-config:core:${night_config_version}",
"com.electronwill.night-config:toml:${night_config_version}",
"net.minecraftforge:forgeconfigapiport-fabric:${forge_config_port_version}",
)
)
}
dependencies {
modCompileOnly("me.shedaniel:RoughlyEnoughItems-api-fabric:${rei_version}")
modCompileOnly("me.shedaniel:RoughlyEnoughItems-default-plugin-fabric:${rei_version}")
if (!env.isCI) {
modRuntimeOnly("dev.architectury:architectury-fabric:${architectury_version}")
modRuntimeOnly("me.shedaniel:RoughlyEnoughItems-fabric:${rei_version}")
}
modApi("com.simibubi.create:create-fabric-${mc_version}:${create_version}")
modApi("curse.maven:farmers-delight-482834:${farmers_delight_version}")
modCompileOnly("dev.latvian.mods:kubejs-forge:${kubejs_version}")
}
enablePublishing {
name.set("${mod_id}-fabric")
githubPackages()
}
uploadToCurseforge {
dependencies {
required("create-fabric")
optional("farmers-delight-fabric")
}
}
uploadToModrinth {
dependencies {
required("Xbc0uyRg")
optional("4EakbH8e")
}
}