-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
110 lines (90 loc) · 3.48 KB
/
build.gradle.kts
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
/*
* Copyright (C) 2021 anatawa12 and other contributors
*
* This file is/was a part of plugin-permissions-for-ngt,
* which is released under GNU GPL v3.
*
* See LICENSE at https://github.com/anatawa12/plugin-permissions-for-ngt.
*/
import com.anatawa12.pluginPermsForNgt.buildPlugin.*
import java.net.URI
plugins {
java
`plugin-perms-for-ngt-build`
id("com.anatawa12.compile-time-constant") version "1.0.5"
}
group = "com.anatawa12.fixRtm.plugin-permissions-for-ngt"
version = property("version").toString()
val api by sourceSets.creating
repositories {
mavenCentral()
maven(url = "https://libraries.minecraft.net/")
}
dependencies {
implementation(api.output)
compileOnly("net.minecraft:launchwrapper:1.12")
}
tasks.jar {
manifest.attributes("FMLCorePlugin" to "com.anatawa12.pluginPermsForNgt.coreMod.PluginPermsForNgtFMLLoadingPlugin")
manifest.attributes("FMLCorePluginContainsFMLMod" to "*")
}
tasks.createCompileTimeConstant {
constantsClass = "com.anatawa12.pluginPermsForNgt.Constants"
values(mapOf("VERSION" to version.toString()))
}
val fixRTMId = 365235
val rtmId = 288988
val ngtlibId = 288989
// minecraft modifications
// KaizPatchX: 1.6.0
val kaizPatch by pluginPermsForNgt.mods.creatingURI(URI("https://github.com/Kai-Z-JP/KaizPatchX/releases/download/" +
"v1.6.0/src1.7.10_20200822+KaizPatchX-1.6.0.jar"))
// fixRTM: 2.0.24-beta2
val fixRTM by pluginPermsForNgt.mods.creatingCurse(fixRTMId, 4053423)
// RTM: 1.7.10.41
val rtm1710 by pluginPermsForNgt.mods.creatingCurse(rtmId, 3039063)
// RTM: 2.4.22-40
val rtm1122 by pluginPermsForNgt.mods.creatingCurse(rtmId, 3387261)
// NGTLib: 1.7.10.44
val ngtlib1710 by pluginPermsForNgt.mods.creatingCurse(ngtlibId, 4030455)
// NGTLib: 2.4.23-42
val ngtlib1122 by pluginPermsForNgt.mods.creatingCurse(ngtlibId, 3873403)
// LuckPerms: v5.3.64
val luckPermsBuildNumber = 1460
val luckPermsVersion = "5.4.52"
val luckPerms1710 by pluginPermsForNgt.mods.creatingURI(URI("https://ci.lucko.me/job/LuckPerms/$luckPermsBuildNumber/artifact" +
"/bukkit-legacy/loader/build/libs/LuckPerms-Bukkit-Legacy-$luckPermsVersion.jar"))
val luckPerms1122 by pluginPermsForNgt.mods.creatingURI(URI("https://ci.lucko.me/job/LuckPerms/$luckPermsBuildNumber/artifact" +
"/bukkit/loader/build/libs/LuckPerms-Bukkit-$luckPermsVersion.jar"))
// servers
val mohist1710 by pluginPermsForNgt.servers.creatingMohist("1.7.10", 46)
val mohist1122 by pluginPermsForNgt.servers.creatingMohist("1.12.2", 321)
// others
val pluginPermsForNGT by pluginPermsForNgt.mods.creatingByArchiveTask(tasks.jar)
// base run directory
val runsDir = layout.projectDirectory.dir("runs")
// run configurations
val runSimple1710 by pluginPermsForNgt.runs.creating {
runsOn.set(runsDir.dir("simple1710"))
server.set(mohist1710)
mods.addAll(rtm1710, ngtlib1710, pluginPermsForNGT)
plugins.addAll(luckPerms1710)
}
val runSimple1122 by pluginPermsForNgt.runs.creating {
runsOn.set(runsDir.dir("simple1122"))
server.set(mohist1122)
mods.addAll(rtm1122, ngtlib1122, pluginPermsForNGT)
plugins.addAll(luckPerms1122)
}
val runKaizPatch by pluginPermsForNgt.runs.creating {
runsOn.set(runsDir.dir("kaizPatch"))
server.set(mohist1710)
mods.addAll(kaizPatch, pluginPermsForNGT)
plugins.addAll(luckPerms1710)
}
val runFixRTM by pluginPermsForNgt.runs.creating {
runsOn.set(runsDir.dir("fixRTM"))
server.set(mohist1122)
mods.addAll(rtm1122, ngtlib1122, fixRTM, pluginPermsForNGT)
plugins.addAll(luckPerms1122)
}