generated from Fallen-Breath/fabric-mod-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
54 lines (49 loc) · 1.39 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
plugins {
id 'maven-publish'
id 'com.github.hierynomus.license' version '0.16.1' apply false
id 'fabric-loom' version '1.7-SNAPSHOT' apply false
// https://github.com/ReplayMod/preprocessor
// https://github.com/Fallen-Breath/preprocessor
id 'com.replaymod.preprocess' version 'ce1aeb2b'
// https://github.com/Fallen-Breath/yamlang
id 'me.fallenbreath.yamlang' version '1.4.0' apply false
}
preprocess {
def mc1194 = createNode('1.19.4', 1_19_04, '')
def mc1201 = createNode('1.20.1', 1_20_01, '')
def mc1202 = createNode('1.20.2', 1_20_02, '')
def mc1206 = createNode('1.20.6', 1_20_06, '')
def mc1211 = createNode('1.21.1', 1_21_01, '')
def mc1213 = createNode('1.21.3', 1_21_03, '')
def mc1214 = createNode('1.21.4', 1_21_04, '')
mc1194.link(mc1201, null)
mc1201.link(mc1202, null)
mc1202.link(mc1206, null)
mc1206.link(mc1211, null)
mc1211.link(mc1213, null)
mc1213.link(mc1214, null)
}
tasks.register('buildAndGather') {
subprojects {
dependsOn project.tasks.named('build').get()
}
doFirst {
println 'Gathering builds'
def buildLibs = {
p -> p.buildDir.toPath().resolve('libs')
}
delete fileTree(buildLibs(rootProject)) {
include '*'
}
subprojects {
copy {
from(buildLibs(project)) {
include '*.jar'
exclude '*-dev.jar', '*-sources.jar', '*-shadow.jar'
}
into buildLibs(rootProject)
duplicatesStrategy DuplicatesStrategy.INCLUDE
}
}
}
}