-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
70 lines (54 loc) · 1.58 KB
/
build.gradle
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
plugins {
id 'fabric-loom' version '0.12-SNAPSHOT'
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
version = project.root_version
allprojects {
apply plugin: 'fabric-loom'
java {
withSourcesJar()
}
repositories {
maven {
name = "TerraformersMC"
url = "https://maven.terraformersmc.com/releases/"
content {
includeGroup "com.terraformersmc"
}
}
}
dependencies {
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
// ModMenu for testing
modRuntimeOnly "com.terraformersmc:modmenu:4.0.3"
}
tasks.withType(ProcessResources).configureEach {
inputs.property "version", project.version
inputs.property "root_id", project.root_id
inputs.property "root_name", project.root_name
inputs.property "root_description", project.root_description
inputs.property "root_icon", project.root_icon
inputs.property "discord_invite", project.discord_invite
filesMatching("fabric.mod.json") {
expand "version": project.version,
"root_id": root_id,
"root_name": root_name,
"root_description": root_description,
"root_icon": root_icon,
"discord_invite": discord_invite
}
}
}
dependencies {
afterEvaluate {
subprojects.each {
runtimeOnly project(path: it.path, configuration: "namedElements")
}
}
// Fabric API
modRuntimeOnly "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
}