forked from SkinsRestorer/SkinsRestorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
40 lines (34 loc) · 997 Bytes
/
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
plugins {
base
}
allprojects {
group = "net.skinsrestorer"
version = "14.2.0-SNAPSHOT"
description = "Ability to restore/change skins on servers! (Offline and Online Mode)"
}
val platforms = setOf(
projects.skinsrestorerBukkit,
projects.skinsrestorerBungee,
projects.skinsrestorerSponge,
projects.skinsrestorerVelocity
).map { it.dependencyProject }
val shadow = setOf(
projects.skinsrestorerShared
).map { it.dependencyProject }
val special = setOf(
projects.skinsrestorer,
projects.skinsrestorerApi
).map { it.dependencyProject }
val mappings = setOf(
projects.mappings
).map { it.dependencyProject }
subprojects {
when (this) {
in platforms -> plugins.apply("sr.platform-logic")
in shadow -> plugins.apply("sr.shadow-logic")
in special -> plugins.apply("sr.base-logic")
in mappings -> subprojects.onEach {
if (it.name.startsWith("mc-")) it.plugins.apply("sr.mapping-logic")
}
}
}