generated from JamCoreModding/template-mod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
50 lines (40 loc) · 1.58 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
plugins {
id("fabric-loom") version "0.12-SNAPSHOT"
id("org.quiltmc.quilt-mappings-on-loom") version "4.2.0"
id("io.github.juuxel.loom-quiltflower") version "1.7.+"
id("io.github.p03w.machete") version "1.+"
id("org.cadixdev.licenser") version "0.6.+"
}
apply(from = "https://raw.githubusercontent.com/JamCoreModding/Gronk/1c88c92a1c2b142505b8d0a153fe82f759222c78/publishing.gradle.kts")
apply(from = "https://raw.githubusercontent.com/JamCoreModding/Gronk/1c88c92a1c2b142505b8d0a153fe82f759222c78/misc.gradle.kts")
val mod_version: String by project
group = "io.github.jamalam360"
version = mod_version
repositories {
val mavenUrls = mapOf(
Pair("https://maven.terraformersmc.com/releases", listOf("com.terraformersmc")),
Pair("https://api.modrinth.com/maven", listOf("maven.modrinth")),
Pair("https://maven.jamalam.tech/releases", listOf("io.github.jamalam360")),
)
for (mavenPair in mavenUrls) {
maven {
url = uri(mavenPair.key)
content {
for (group in mavenPair.value) {
includeGroup(group)
}
}
}
}
}
dependencies {
minecraft(libs.minecraft)
mappings(loom.layered {
addLayer(quiltMappings.mappings("org.quiltmc:quilt-mappings:${libs.versions.minecraft.get()}+build.${libs.versions.mappings.build.get()}:v2"))
})
modImplementation(libs.fabric.loader)
modImplementation(libs.fabric.api)
modImplementation(libs.required.jam.lib)
modApi(libs.optional.mod.menu)
modLocalRuntime(libs.runtime.lazy.dfu)
}