forked from Skidamek/AutoModpack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
92 lines (80 loc) · 3.76 KB
/
build.gradle
File metadata and controls
92 lines (80 loc) · 3.76 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
plugins {
id 'maven-publish'
id 'com.github.hierynomus.license' version '0.16.1' apply false
// id "architectury-plugin" version "3.4-SNAPSHOT"
id "dev.architectury.loom" version "1.3-SNAPSHOT" apply false
// https://github.com/Juuxel/loom-vineflower
id 'io.github.juuxel.loom-vineflower' version '1.11.0' apply false
// https://github.com/ReplayMod/preprocessor
// https://github.com/Fallen-Breath/preprocessor
id 'com.replaymod.preprocess' version '20c7ec554a'
// https://github.com/Fallen-Breath/yamlang
id 'me.fallenbreath.yamlang' version '1.3.0' apply false
id 'com.github.johnrengelman.shadow' version '7.1.2' apply false
}
preprocess {
def mc1_16_05_fabric = createNode('1.16.5-fabric', 1_16_05, 'yarn')
def mc1_17_01_fabric = createNode('1.17.1-fabric', 1_17_01, 'yarn')
def mc1_18_02_fabric = createNode('1.18.2-fabric', 1_18_02, 'yarn')
def mc1_19_02_fabric = createNode('1.19.2-fabric', 1_19_02, 'yarn')
def mc1_19_03_fabric = createNode('1.19.3-fabric', 1_19_03, 'yarn')
def mc1_19_04_fabric = createNode('1.19.4-fabric', 1_19_04, 'yarn')
def mc1_20_01_fabric = createNode('1.20.1-fabric', 1_20_01, 'yarn')
def mc1_16_05_quilt = createNode('1.16.5-quilt', 1_16_05, 'yarn')
def mc1_17_01_quilt = createNode('1.17.1-quilt', 1_17_01, 'yarn')
def mc1_18_02_quilt = createNode('1.18.2-quilt', 1_18_02, 'yarn')
def mc1_19_02_quilt = createNode('1.19.2-quilt', 1_19_02, 'yarn')
def mc1_19_03_quilt = createNode('1.19.3-quilt', 1_19_03, 'yarn')
def mc1_19_04_quilt = createNode('1.19.4-quilt', 1_19_04, 'yarn')
def mc1_20_01_quilt = createNode('1.20.1-quilt', 1_20_01, 'yarn')
def mc1_16_05_forge = createNode('1.16.5-forge', 1_16_05, 'yarn')
def mc1_17_01_forge = createNode('1.17.1-forge', 1_17_01, 'yarn')
def mc1_18_02_forge = createNode('1.18.2-forge', 1_18_02, 'yarn')
def mc1_19_02_forge = createNode('1.19.2-forge', 1_19_02, 'yarn')
def mc1_19_03_forge = createNode('1.19.3-forge', 1_19_03, 'yarn')
def mc1_19_04_forge = createNode('1.19.4-forge', 1_19_04, 'yarn')
def mc1_20_01_forge = createNode('1.20.1-forge', 1_20_01, 'yarn')
// main 1.18.2-fabric
mc1_16_05_fabric.link(mc1_17_01_fabric, null)
mc1_17_01_fabric.link(mc1_18_02_fabric, null)
mc1_18_02_fabric.link(mc1_19_02_fabric, null)
mc1_19_02_fabric.link(mc1_19_03_fabric, null)
mc1_19_03_fabric.link(mc1_19_04_fabric, null)
mc1_19_04_fabric.link(mc1_20_01_fabric, null)
mc1_16_05_fabric.link(mc1_16_05_quilt, null)
mc1_17_01_fabric.link(mc1_17_01_quilt, null)
mc1_18_02_fabric.link(mc1_18_02_quilt, null)
mc1_19_02_fabric.link(mc1_19_02_quilt, null)
mc1_19_03_fabric.link(mc1_19_03_quilt, null)
mc1_19_04_fabric.link(mc1_19_04_quilt, null)
mc1_20_01_fabric.link(mc1_20_01_quilt, null)
mc1_16_05_fabric.link(mc1_16_05_forge, null)
mc1_17_01_fabric.link(mc1_17_01_forge, null)
mc1_18_02_fabric.link(mc1_18_02_forge, null)
mc1_19_02_fabric.link(mc1_19_02_forge, null)
mc1_19_03_fabric.link(mc1_19_03_forge, null)
mc1_19_04_fabric.link(mc1_19_04_forge, null)
mc1_20_01_fabric.link(mc1_20_01_forge, null)
}
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
}
}
}
}