-
Notifications
You must be signed in to change notification settings - Fork 119
/
build.gradle
88 lines (76 loc) · 2.81 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
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
plugins {
id 'com.github.johnrengelman.shadow' version "${shadow_version}" apply false
id 'com.matthewprenger.cursegradle' version "${cursegradle_version}" apply false
id 'com.modrinth.minotaur' version "${minotaur_version}" apply false
id 'mod-update' version "${mod_update_version}" apply false
id 'fabric-loom' version "${fabric_loom_version}" apply false
id 'io.papermc.hangar-publish-plugin' version "${hangar_publish_version}" apply false
id 'io.papermc.paperweight.userdev' version "${paperweight_version}" apply false
id 'xyz.jpenilla.run-paper' version "${run_task_version}" apply false
}
apply from: "https://raw.githubusercontent.com/henkelmax/mod-gradle-scripts/${mod_gradle_script_version}/taskutils.gradle"
tasks.register('01-publishBungeeCord') {
group = 'voicechat'
doLast {
runGradleTasks(['common-proxy:clean', 'bungeecord:clean'], ['bungeecord:modrinth', 'bungeecord:publishAllPublicationsToHangar'])
}
}
tasks.register('02-publishVelocity') {
group = 'voicechat'
doLast {
runGradleTasks(['common-proxy:clean', 'velocity:clean'], ['velocity:modrinth', 'velocity:publishAllPublicationsToHangar'])
}
}
tasks.register('03-publishBukkit') {
group = 'voicechat'
doLast {
runGradleTasks(['bukkit:clean'], ['bukkit:curseforge', 'bukkit:modrinth', 'bukkit:publishAllPublicationsToHangar'])
}
}
tasks.register('04-publishPaper') {
group = 'voicechat'
doLast {
runGradleTasks(['common:clean'], ['paper:modrinth', 'paper:publishAllPublicationsToHangar'])
}
}
tasks.register('05-publishQuilt', GradleBuild) {
group = 'voicechat'
dir = 'quilt'
tasks = ['uploadMod']
}
tasks.register('06-publishForge') {
group = 'voicechat'
doLast {
runGradleTasks(['common:clean', 'common-client:clean', 'forge:clean'], ['forge:curseforge', 'forge:modrinth', 'forge:modUpdate'])
}
}
tasks.register('07-publishNeoForge') {
group = 'voicechat'
doLast {
runGradleTasks(['common:clean', 'common-client:clean', 'neoforge:clean'], ['neoforge:curseforge', 'neoforge:modrinth', 'neoforge:modUpdate'])
}
}
tasks.register('08-publishFabric') {
group = 'voicechat'
doLast {
runGradleTasks(['common:clean', 'common-client:clean', 'fabric:clean'], ['fabric:curseforge', 'fabric:modrinth', 'fabric:modUpdate'])
}
}
tasks.register('publishFabricSnapshot') {
group = 'voicechat'
doLast {
runGradleTasks(['common:clean', 'common-client:clean', 'fabric:clean'], ['fabric:curseforge', 'fabric:modrinth'])
}
}
tasks.register('publishApi') {
group = 'voicechat'
doLast {
runGradleTasks(['api:clean', 'api:publish'], [])
}
}
tasks.register('publishApiLocal') {
group = 'voicechat'
doLast {
runGradleTasks(['api:clean', 'api:publishToMavenLocal'], [])
}
}