-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle.kts
68 lines (54 loc) · 1.96 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
plugins {
id("fabric-loom")
java
kotlin("jvm") version "1.8.21"
}
group = property("maven_group")!!
version = property("mod_version")!!
repositories {
mavenCentral()
maven("https://maven.terraformersmc.com/") // modmenu
maven("https://maven.gegy.dev")
maven("https://jitpack.io")
maven("https://maven.isxander.dev/releases") // yacl
maven("https://maven.shedaniel.me") // REI
maven("https://pkgs.dev.azure.com/djtheredstoner/DevAuth/_packaging/public/maven/v1")
maven("https://maven.ladysnake.org/releases")
}
dependencies {
minecraft("com.mojang:minecraft:${property("minecraft_version")}")
mappings("net.fabricmc:yarn:${property("yarn_mappings")}:v2")
modImplementation("net.fabricmc:fabric-loader:${property("loader_version")}")
modImplementation("com.terraformersmc:modmenu:${property("mod_menu_version")}")
modImplementation("dev.isxander:yet-another-config-lib:${property("yacl_version")}")
modImplementation("net.fabricmc:fabric-language-kotlin:${property("fabric_kotlin_version")}")
modImplementation("me.shedaniel:RoughlyEnoughItems-api-fabric:${property("rei_version")}")
include(modImplementation("com.github.0x3C50:Renderer:master-SNAPSHOT")!!)
setOf(
"fabric-api-base",
"fabric-lifecycle-events-v1",
"fabric-networking-api-v1"
).forEach {
// Add each module as a dependency
modImplementation(fabricApi.module(it, property("fabric_version") as String))
}
modRuntimeOnly("me.shedaniel:RoughlyEnoughItems-fabric:${property("rei_version")}")
modRuntimeOnly("me.djtheredstoner:DevAuth-fabric:1.1.2")
}
tasks {
processResources {
inputs.property("version", project.version)
filesMatching("fabric.mod.json") {
expand(mutableMapOf("version" to project.version))
}
}
jar {
from("LICENSE")
}
compileKotlin {
kotlinOptions.jvmTarget = "17"
}
}
java {
withSourcesJar()
}