-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
78 lines (64 loc) · 1.26 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
71
72
73
74
75
76
77
78
buildscript {
repositories {
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'
}
mavenCentral()
maven {
name = 'Jitpack'
url 'https://jitpack.io/'
}
}
dependencies {
classpath 'com.github.Chocohead:Fabric-Loom:66ed9fe'
}
}
apply plugin: 'fabric-loom'
sourceCompatibility = 1.8
targetCompatibility = 1.8
archivesBaseName = 'Crafty-Crashes'
version = '1.0'
repositories {
maven {
name = 'Jitpack'
url 'https://jitpack.io/'
}
}
dependencies {
def mcVersion = '1.16.3'
def mapping = "$mcVersion+build.5"
minecraft "com.mojang:minecraft:$mcVersion"
mappings "net.fabricmc:yarn:$mapping:v2"
modImplementation 'net.fabricmc:fabric-loader:0.11.3'
}
sourceSets {
main {
java {
srcDir 'src'
}
resources {
srcDir 'resources'
}
}
}
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'
}
}
minecraft {
fieldInferenceFilter = {existingName, replacement -> false}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}