-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
38 lines (35 loc) · 1.09 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
plugins {
id "com.replaymod.preprocess" version "897c4096e2"
id 'fabric-loom' version '1.0-SNAPSHOT' apply false
id 'io.github.juuxel.loom-quiltflower' version '1.7.0' apply false
}
preprocess {
def mc117 = createNode("1.17.1", 1_17_01, "yarn")
def mc118 = createNode("1.18.2", 1_18_02, "yarn")
def mc1192 = createNode("1.19.2", 1_19_02, "yarn")
def mc1194 = createNode("1.19.4", 1_19_04, "yarn")
def mc1201 = createNode("1.20.1", 1_20_01, "yarn")
mc1201.link(mc1194, file("versions/mapping-1.20.1-1.19.4.txt"))
mc1194.link(mc1192, file("versions/mapping-1.19.4-1.19.2.txt"))
mc1192.link(mc118, file("versions/mapping-1.19.2-1.18.2.txt"))
mc118.link(mc117, file("versions/mapping-1.18.2-1.17.1.txt"))
}
task buildAndGather {
subprojects {
dependsOn project.name + ":build"
}
doFirst {
println "Gathering builds"
copy {
subprojects {
def libDir = project.projectDir.toPath().resolve("build/libs")
from(libDir) {
include "*.jar"
exclude "*-dev.jar", "*-sources.jar", "*-all.jar"
}
into "build/libs/"
duplicatesStrategy DuplicatesStrategy.INCLUDE
}
}
}
}