forked from Fallen-Breath/LetMeClickAndSend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
62 lines (53 loc) · 1.8 KB
/
build.gradle
File metadata and controls
62 lines (53 loc) · 1.8 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
plugins {
id 'maven-publish'
id 'com.github.hierynomus.license' version '0.16.1' apply false
id 'dev.architectury.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 mc1192_fabric = createNode('1.19.2-fabric', 1_19_02, '')
def mc1194_fabric = createNode('1.19.4-fabric', 1_19_04, '')
def mc1201_fabric = createNode('1.20.1-fabric', 1_20_01, '')
def mc1206_fabric = createNode('1.20.6-fabric', 1_20_06, '')
def mc1192_forge = createNode('1.19.2-forge' , 1_19_02, '')
def mc1194_forge = createNode('1.19.4-forge' , 1_19_04, '')
def mc1201_forge = createNode('1.20.1-forge' , 1_20_01, '')
def mc1206_forge = createNode('1.20.6-forge' , 1_20_06, '')
def mc1206_neoforge = createNode('1.20.6-neoforge', 1_20_06, '')
mc1192_fabric.link(mc1194_fabric, null)
mc1194_fabric.link(mc1201_fabric, null)
mc1201_fabric.link(mc1206_fabric, null)
mc1192_fabric.link(mc1192_forge, null)
mc1194_fabric.link(mc1194_forge, null)
mc1201_fabric.link(mc1201_forge, null)
mc1206_fabric.link(mc1206_forge, null)
mc1206_fabric.link(mc1206_neoforge, 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
}
}
}
}