-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
46 lines (38 loc) · 974 Bytes
/
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
// add required plugins
plugins {
// loom plugin
id 'fabric-loom' version "${loom_version}"
// lombok plugin
id 'io.freefair.lombok' version "8.4"
}
// configure jar
base {
// change compiled filename
archivesName = "LoTAS-v${lotas_version}-mc1.16.1"
}
// configure loom
loom {
// set access widener path
accessWidenerPath = file('src/main/resources/lotas.accesswidener')
}
// add dependencies
dependencies {
// add mojang mappings
mappings loom.officialMojangMappings()
// add fabric loader
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
// add minecraft dependency
minecraft "com.mojang:minecraft:1.16.1"
}
// compile for java 8
java {
targetCompatibility = sourceCompatibility = JavaVersion.VERSION_1_8
}
// process resources
processResources {
inputs.property "version", project.lotas_version
// update fabric.mod.json with version
filesMatching("fabric.mod.json") {
expand "mod_version": project.lotas_version
}
}