This repository was archived by the owner on Jun 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
44 lines (37 loc) · 1.49 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
plugins {
id 'java'
id 'fabric-loom' version '1.1-SNAPSHOT'
id "io.github.juuxel.loom-quiltflower" version "1.+"
}
group 'org.lexize'
String mc_ver = project.minecraft_version
version = "${project.mod_version}+${mc_ver}"
String fabric_api_version = project.fabric_api_version;
repositories {
maven { url 'https://jitpack.io' }
maven { url 'https://maven.terraformersmc.com/releases/' }
maven { url 'https://api.modrinth.com/maven' }
maven { url 'https://maven.quiltmc.org/repository/release/' }
}
dependencies {
minecraft "com.mojang:minecraft:$minecraft_version"
mappings loom.layered {
mappings("org.quiltmc:quilt-mappings:$minecraft_version+build.$mappings:intermediary-v2")
officialMojangMappings()
}
modImplementation "net.fabricmc:fabric-loader:$loader_version"
implementation("com.github.Kingdom-of-The-Moon.LuaJ:luaj-core:$luaj-figura")
implementation("com.github.Kingdom-of-The-Moon.LuaJ:luaj-jse:$luaj-figura")
modImplementation "com.github.Kingdom-of-The-Moon:FiguraRewriteRewrite:${figura_build_version}"
}
processResources {
Map<String, Object> properties = new HashMap<>()
properties.put("figura_version", figura_version);
properties.put("java_version", java_version)
properties.put("mod_version", mod_version);
properties.put("fabric_api_version", fabric_api_version);
properties.forEach((k, v) -> inputs.property(k, v.toString()))
filesMatching("fabric.mod.json") {
expand properties
}
}