forked from TISUnion/Carpet-TIS-Addition
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
54 lines (48 loc) · 1.96 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.1-SNAPSHOT' apply false
// https://github.com/Juuxel/LoomQuiltflower
id 'io.github.juuxel.loom-quiltflower' version '1.8.0' apply false
// https://github.com/ReplayMod/preprocessor
// https://github.com/Fallen-Breath/preprocessor
id 'com.replaymod.preprocess' version 'e1050f4d72'
// https://github.com/Fallen-Breath/yamlang
id 'me.fallenbreath.yamlang' version '1.1.0' apply false
}
preprocess {
def mc114 = createNode('1.14.4' , 1_14_04, 'yarn')
def mc115 = createNode('1.15.2' , 1_15_02, 'yarn')
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.3' , 1_19_03, 'yarn')
def mc119x = createNode('1.19.x' , 1_19_04, 'yarn')
def mcFuture = createNode('future' , 1_20_00, 'yarn')
mc115.link(mc114 , file('versions/mapping-1.15-1.14.txt'))
mc115.link(mc116 , file('versions/mapping-1.15-1.16.txt'))
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(mc119x , null)
mc119x.link(mcFuture, file('versions/mapping-1.19.x-future.txt'))
}
tasks.register('buildAndGather') {
subprojects {
dependsOn project.name + ':build'
}
doFirst {
println 'Gathering builds'
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
}
}
}
}