forked from QuickBackupMultiMod-Dev/QuickBackupM-Fabric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
42 lines (39 loc) · 1.18 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
plugins {
id "fabric-loom" version "1.7-SNAPSHOT" apply false
id "maven-publish"
id "com.replaymod.preprocess" version "SNAPSHOT"
}
preprocess {
def mc118 = createNode("1.18.2", 1_18_02, "yarn")
def mc119 = createNode("1.19.4", 1_19_04, "yarn")
def mc1200 = createNode("1.20", 1_20_00, "yarn")
def mc1203 = createNode("1.20.3", 1_20_03, "yarn")
def mc1205 = createNode("1.20.5", 1_20_05, "yarn")
def mc1210 = createNode("1.21", 1_21_00, "yarn")
mc118.link(mc119, file("versions/mapping-1.18-1.19.txt"))
mc119.link(mc1200, file("versions/mapping-empty.txt"))
mc1200.link(mc1203, file("versions/mapping-empty.txt"))
mc1203.link(mc1205, file("versions/mapping-empty.txt"))
mc1205.link(mc1210, file("versions/mapping-empty.txt"))
}
tasks.register("buildAndGather") {
subprojects {
dependsOn project.name + ":remapJar"
}
doFirst {
delete fileTree(project.projectDir.toPath().resolve('build/libs')) {
include '*'
}
copy {
subprojects {
def libDir = project.projectDir.toPath().resolve('build/libs')
from(libDir) {
include '*.jar'
exclude '*-dev.jar', '*-sources.jar'
}
into 'build/libs/'
duplicatesStrategy DuplicatesStrategy.INCLUDE
}
}
}
}