-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
58 lines (55 loc) · 2.07 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
plugins {
id 'maven-publish'
id 'com.github.hierynomus.license' version '0.16.1' apply false
id 'fabric-loom' version '1.6-SNAPSHOT' apply false
id 'com.replaymod.preprocess' version '7fa8d51'
}
preprocess {
def mc116 = createNode('1.16.5', 1_16_05, 'yarn')
def mc117 = createNode('1.17.1', 1_17_01, 'yarn')
def mc118 = createNode('1.18.2', 1_18_02, 'yarn')
def mc119 = createNode('1.19.4', 1_19_04, 'yarn')
def mc120 = createNode('1.20', 1_20_00, 'yarn')
def mc1201 = createNode('1.20.1', 1_20_01, 'yarn')
def mc1202 = createNode('1.20.2', 1_20_02, 'yarn')
def mc1203 = createNode('1.20.3', 1_20_03, 'yarn')
def mc1204 = createNode('1.20.4', 1_20_04, 'yarn')
def mc1205 = createNode('1.20.5', 1_20_05, 'yarn')
def mc1206 = createNode('1.20.6', 1_20_06, 'yarn')
def mc121 = createNode('1.21', 1_21_00, 'yarn')
def mc1211 = createNode('1.21.1', 1_21_01, 'yarn')
mc116.link(mc117, file('versions/mapping-1.16-1.17.txt'))
mc117.link(mc118, file('versions/mapping-1.17-1.18.txt'))
mc118.link(mc119, file('versions/mapping-1.18-1.19.txt'))
mc119.link(mc120, file('versions/mapping-1.19-1.20.txt'))
mc120.link(mc1201, file('versions/mapping-1.20.6-1.21.txt'))
mc1201.link(mc1202, file('versions/mapping-1.20.1-1.20.2.txt'))
mc1202.link(mc1203, file('versions/mapping-1.20.2-1.20.3.txt'))
mc1203.link(mc1204, file('versions/mapping-1.20.3-1.20.4.txt'))
mc1204.link(mc1205, file('versions/mapping-1.20.4-1.20.5.txt'))
mc1205.link(mc1206, file('versions/mapping-1.20.5-1.20.6.txt'))
mc1206.link(mc121, file('versions/mapping-1.20.6-1.21.txt'))
mc121.link(mc1211, file('versions/mapping-1.21-1.21.1.txt'))
}
tasks.register('buildAndGather') {
subprojects {
dependsOn project.name + ':build'
}
doFirst {
println 'Gathering builds'
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
}
}
}
}