-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
61 lines (55 loc) · 1.83 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
55
56
57
58
59
60
61
plugins {
id 'maven-publish'
id "io.github.goooler.shadow" version "8.1.7" apply false
id "dev.architectury.loom" version "1.7-SNAPSHOT" apply false
id "io.github.p03w.machete" version "2.+" 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.3.1' apply false
}
preprocess {
def mc1211_fabric = createNode('1.21.1-fabric', 1_21_01, '')
def mc1212_fabric = createNode('1.21.2-fabric', 1_21_02, '')
def walter = createNode('Walter', 1_21_02, '')
mc1211_fabric.link(mc1212_fabric, null)
mc1212_fabric.link(mc1212_fabric, null)
walter.link(mc1212_fabric, null)
}
publishing {
repositories {
maven {
name = "Kel_Cuprum_Repository"
url = "https://repo.kelcuprum.ru/test"
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
}
}
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', '*-all.jar'
}
into buildLibs(rootProject)
duplicatesStrategy DuplicatesStrategy.INCLUDE
}
}
}
}