forked from Chocohead/Fabric-ASM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
98 lines (86 loc) · 1.8 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
buildscript {
repositories {
maven {
name = "Fabric"
url = "https://maven.fabricmc.net/"
}
jcenter()
maven {
name = "Forge"
url = "https://files.minecraftforge.net/maven/"
}
maven {
name = "Jitpack"
url 'https://jitpack.io/'
}
}
dependencies {
classpath 'com.github.Chocohead:fabric-loom:415c6b'
}
}
apply plugin: "fabric-loom"
import net.fabricmc.loom.task.RemappingJar;
sourceCompatibility = 1.8
targetCompatibility = 1.8
archivesBaseName = "Manningham Mills"
version = "2.3"
minecraft {
refmapName = "mixins.mm.refmap.json"
AT = file("example/resources/access-transformations.txt")
}
dependencies {
minecraft "com.mojang:minecraft:1.14 Pre-Release 3"
mappings "net.fabricmc:yarn:1.14 Pre-Release 3+build.1:tiny@gz"
modCompile "net.fabricmc:fabric-loader:0.7.0+build.171"
}
sourceSets {
main {
java {
srcDir 'src'
}
resources {
srcDir 'resources'
}
}
example {
compileClasspath += main.compileClasspath + main.output
annotationProcessorPath = main.annotationProcessorPath
java {
srcDir 'example/src'
}
resources {
srcDir 'example/resources'
exclude "access-transformations.txt"
}
}
}
jar {
AT.include = false
}
task exampleJar(type: RemappingJar, dependsOn: exampleClasses) {
classifier = "example"
from sourceSets.example.output
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = "sources"
from sourceSets.main.allSource
}
task exampleSourcesJar(type: RemappingJar, dependsOn: exampleClasses) {
classifier = "example-sources"
from sourceSets.example.allSource
}
build.dependsOn exampleJar, exampleSourcesJar
artifacts {
archives(remapJar) {
builtBy remapJar
}
archives(exampleJar) {
builtBy exampleJar
}
archives(sourcesJar) {
builtBy sourcesJar
}
archives(exampleSourcesJar) {
builtBy exampleSourcesJar
}
}