-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
50 lines (46 loc) · 1.61 KB
/
build.gradle
File metadata and controls
50 lines (46 loc) · 1.61 KB
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
plugins {
id("maven-publish")
id("com.github.hierynomus.license").version("${hierynomus_license_version}").apply(false)
id("fabric-loom").version("${fabric_loom_version}").apply(false)
id("com.replaymod.preprocess").version("${preprocess_version}")
}
preprocess {
preprocess.strictExtraMappings.set(false)
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 mc1206 = createNode('1.20.6', 1_20_06, 'yarn')
def mc1214 = createNode('1.21.4', 1_21_04, 'yarn')
def mc1215 = createNode('1.21.5', 1_21_05, 'yarn')
def mc1216 = createNode('1.21.6', 1_21_06, '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(mc1206, file('versions/mapping-1.19-1.20.6.txt'))
mc1206.link(mc1214, file('versions/mapping-1.20.6-1.21.4.txt'))
mc1214.link(mc1215, file('versions/mapping-1.21.4-1.21.5.txt'))
mc1215.link(mc1216, file('versions/mapping-1.21.5-1.21.6.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
}
}
}
}