-
Notifications
You must be signed in to change notification settings - Fork 7
/
settings.gradle
71 lines (61 loc) · 2.37 KB
/
settings.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
pluginManagement {
repositories {
mavenCentral()
maven {
url = "https://repo.screamingsandals.org/public/"
}
gradlePluginPortal()
}
}
// The result will be for Java 11 but some dependencies requires Java 17 or Java 21
float javaVersion = Float.parseFloat(System.getProperty("java.class.version"))
if (javaVersion < 65.0) {
throw new GradleException("ScreamingLib requires JDK 21 to compile")
}
rootProject.name = "ScreamingLib"
def registerModule(String name, String... platforms) {
include(':' + name + '-common')
project(':' + name + '-common').projectDir = file(name + '/common')
platforms.each {
include(':' + name + '-' + it)
project(':' + name + '-' + it).projectDir = file(name + '/' + it)
}
}
def registerExtension(String name, String... platforms) {
include(':' + name + '-common')
project(':' + name + '-common').projectDir = file('extensions/' + name + '/common')
platforms.each {
include(':' + name + '-' + it)
project(':' + name + '-' + it).projectDir = file('extensions/' + name + '/' + it)
}
}
// Shared content
include 'paperlib' // relocation
include 'api-utils'
registerModule('utils')
include 'nms'
include 'minitag'
include 'nbt'
include 'shared-core'
include 'annotation'
registerModule('spectator', 'adventure', 'bungee')
// Main modules
registerModule('core', 'bukkit', 'vanilla'/*, 'minestom'*/) //TODO: add others (minestom, sponge)
registerModule('proxy', 'bungee', 'velocity')
// Extensions (Optional modules)
include ':lang'
project(':lang').projectDir = file('extensions/lang')
include ':kotlin-extra'
project(':kotlin-extra').projectDir = file('extensions/kotlin-extra')
registerExtension('sidebar', 'bukkit') //TODO: add others
registerExtension('healthindicator', 'bukkit') //TODO: add others
registerExtension('npc', 'bukkit') //TODO: add others
registerExtension('hologram', 'bukkit') //TODO: add others
registerExtension('visuals-api', 'bukkit') //TODO: add others
registerExtension('signs', 'bukkit') //TODO: add others
registerExtension('placeholders', 'bukkit') //TODO: add others
registerExtension('economy', 'bukkit')
registerExtension('packets', 'vanilla', 'bukkit') //TODO: add others
registerExtension('ai', 'bukkit')
registerExtension('fakedeath', 'bukkit')
registerExtension('cloud', 'bukkit', /*'minestom' , 'sponge',*/ 'bungee', 'velocity', 'extras')