-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
70 lines (56 loc) · 1.63 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
buildscript {
repositories {
jcenter()
maven {
name = "Fabric"
url = "https://maven.fabricmc.net/"
}
}
dependencies {
classpath 'net.fabricmc:fabric-loom:0.4-SNAPSHOT'
}
}
apply plugin: "fabric-loom"
repositories {
flatDir {
dirs "src/main/resources"
}
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
dependencies {
minecraft "com.mojang:minecraft:1.16.1"
mappings "net.fabricmc:yarn:1.16.1+build.1:v2"
modCompile "net.fabricmc:fabric-loader:0.8.9+build.203"
// Fabric API. This is technically optional, but you probably want it anyway.
modCompile "net.fabricmc.fabric-api:fabric-api:0.14.1+build.372-1.16"
implementation("com.google.guava:guava:29.0-jre")
modImplementation "me.shedaniel.cloth:config-2:4.5.6"
include "me.shedaniel.cloth:config-2:4.5.6"
}
archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group
minecraft {
}
compileJava {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
options.encoding = "UTF-8"
}
processResources {
inputs.property "version", project.version
from(sourceSets.main.resources.srcDirs) {
include "fabric.mod.json"
expand "version": project.version
}
from(sourceSets.main.resources.srcDirs) {
exclude "fabric.mod.json"
}
}
// ensure that the encoding is set to UTF-8, no matter what the system default is
// this fixes some edge cases with special characters not displaying correctly
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}