forked from Minecraft-AMS/Carpet-AMS-Addition
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
42 lines (37 loc) · 1.13 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
plugins {
id 'maven-publish'
id 'fabric-loom' version '1.0-SNAPSHOT' apply false
// https://github.com/Juuxel/LoomQuiltflower
// id 'io.github.juuxel.loom-quiltflower' version '1.7.4' apply false
id 'com.replaymod.preprocess' version '897c4096e2'
}
preprocess {
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.x', 1_18_02, 'yarn')
def mc119 = createNode('1.19.x', 1_19_02, 'yarn')
def mcFuture = createNode('future', 1_19_03, 'yarn')
mc117.link(mc116, file('versions/mapping-1.17-1.16.txt'))
mc118.link(mc117, file('versions/mapping-1.18-1.17.txt'))
mc118.link(mc119, file('versions/mapping-1.18-1.19.txt'))
mc119.link(mcFuture, file('versions/mapping-1.19-future.txt'))
}
task 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
}
}
}
}