forked from SkinsRestorer/SkinsRestorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
42 lines (36 loc) · 1019 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
41
42
plugins {
base
idea
}
allprojects {
group = "net.skinsrestorer"
version = "15.0.8-SNAPSHOT"
description = "Ability to restore/change skins on servers!"
}
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,
projects.multiver.bukkit.folia
).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.contains("shared")) it.plugins.apply("sr.mapping-logic")
}
}
}