forked from henkelmax/simple-voice-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
64 lines (55 loc) · 1.87 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
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
}
apply from: "https://raw.githubusercontent.com/henkelmax/mod-gradle-scripts/${mod_gradle_script_version}/taskutils.gradle"
tasks.register('01-publishBukkit') {
group = 'voicechat'
doLast {
runGradleTasks(['bukkit:clean'], ['bukkit:curseforge', 'bukkit:modrinth', 'bukkit:publishAllPublicationsToHangar'])
}
}
tasks.register('02-publishQuilt', GradleBuild) {
group = 'voicechat'
dir = 'quilt'
tasks = ['uploadMod']
}
tasks.register('03-publishForge') {
group = 'voicechat'
doLast {
runGradleTasks(['common:clean', 'forge:clean'], ['forge:curseforge', 'forge:modrinth', 'forge:modUpdate'])
}
}
tasks.register('04-publishNeoForge') {
group = 'voicechat'
doLast {
runGradleTasks(['common:clean', 'neoforge:clean'], ['neoforge:curseforge', 'neoforge:modrinth', 'neoforge:modUpdate'])
}
}
tasks.register('05-publishFabric') {
group = 'voicechat'
doLast {
runGradleTasks(['common:clean', 'fabric:clean'], ['fabric:curseforge', 'fabric:modrinth', 'fabric:modUpdate'])
}
}
tasks.register('publishFabricSnapshot') {
group = 'voicechat'
doLast {
runGradleTasks(['common: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'], [])
}
}