-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
83 lines (76 loc) · 2.04 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
plugins {
alias(libs.plugins.fabric.loom)
}
group = "io.github.hiiragi283.enchsmith"
version = "1.0.0+fabric1.16.5"
sourceSets {
main {
resources {
srcDirs += file("src/main/generated")
}
}
}
repositories {
mavenCentral()
maven(url = "https://cursemaven.com") {
content { includeGroup("curse.maven") }
}
maven(url = "https://api.modrinth.com/maven") {
content { includeGroup("maven.modrinth") }
}
// AE2
maven(url = "https://modmaven.dev/") {
content { includeGroup("appeng") }
}
maven(url = "https://mod-buildcraft.com/maven") {
content { includeGroup("alexiil.mc.lib") }
}
maven(url = "https://raw.githubusercontent.com/Technici4n/Technici4n-maven/master/") {
content {
includeGroup("dev.technici4n")
includeGroup("net.fabricmc.fabric-api")
}
}
maven(url = "https://dvs1.progwml6.com/files/maven") // JEI
maven(url = "https://maven.architectury.dev")
maven(url = "https://maven.shedaniel.me") // REI
maven(url = "https://maven.terraformersmc.com/releases")
maven(url = "https://thedarkcolour.github.io/KotlinForForge") // KfF
}
dependencies {
minecraft(libs.minecraft)
mappings("net.fabricmc:yarn:${libs.versions.fabric.yarn.get()}:v2")
modImplementation(libs.fabric.loader)
}
loom {
runs {
getByName("client") {
programArg("--username=Developer")
vmArg("-Dmixin.debug.export=true")
}
getByName("server") {
runDir = "server"
}
}
}
java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks {
test {
useJUnitPlatform()
}
processResources {
inputs.property("version", project.version)
filesMatching("fabric.mod.json") {
expand("version" to project.version)
}
}
jar {
from("LICENSE") {
rename { "${it}_${project.base.archivesName.get()}" }
}
}
}