This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
forked from emilyploszaj/auto-recipe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
81 lines (67 loc) · 1.8 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
plugins {
id("org.quiltmc.loom") version "1.2.+"
id("io.github.p03w.machete") version "1.+"
id("org.cadixdev.licenser") version "0.6.+"
}
apply(from = "https://raw.githubusercontent.com/JamCoreModding/Gronk/quilt/publishing.gradle.kts")
apply(from = "https://raw.githubusercontent.com/JamCoreModding/Gronk/quilt/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")),
)
for (mavenPair in mavenUrls) {
maven {
url = uri(mavenPair.key)
content {
for (group in mavenPair.value) {
includeGroup(group)
}
}
}
}
}
dependencies {
minecraft(libs.minecraft)
mappings(variantOf(libs.quilt.mappings) { classifier("intermediary-v2") })
modImplementation(libs.bundles.quilt)
modLocalRuntime(libs.bundles.runtime)
}
sourceSets {
val main = this.getByName("main")
create("testmod") {
this.compileClasspath += main.compileClasspath
this.compileClasspath += main.output
this.runtimeClasspath += main.runtimeClasspath
this.runtimeClasspath += main.output
}
}
loom {
runtimeOnlyLog4j.set(true)
runs {
create("testClient") {
client()
name("Testmod Client")
source(sourceSets.getByName("testmod"))
runDir("run/test-client")
property("quilt.recipe.dump", "true")
}
create("testServer") {
server()
name("Testmod Server")
source(sourceSets.getByName("testmod"))
runDir("run/test-server")
property("quilt.recipe.dump", "true")
}
getByName("client") {
runDir("run/client")
}
getByName("server") {
runDir("run/server")
}
}
}