forked from ScreamingSandals/BedWars
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
91 lines (75 loc) · 3.3 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
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
plugins {
alias libs.plugins.screaming.plugin.builder apply false
alias libs.plugins.screaming.plugin.slib apply false
alias libs.plugins.nms.mapper apply false
alias libs.plugins.buildconfig apply false
}
if (version.toString().endsWith('-SNAPSHOT')) {
defaultTasks 'clean', 'screamCompile'
} else {
defaultTasks 'clean', 'screamCompile', ':BedWars-API:allowJavadocUpload'
}
subprojects {
apply plugin: 'java'
if (project.name != 'BedWars-API' && project.name != 'BedWars') { // upload only BW and BW-API
project.ext.disablePublishingToMaven = true
}
apply plugin: 'org.screamingsandals.plugin-builder'
if (project.name != 'BedWars-NMS') {
apply plugin: 'org.screamingsandals.plugin-slib'
slib {
version(libs.versions.screaming.lib)
multiModulePlatforms('BedWars-%s', 'bukkit')
multiModuleUniversalSubproject('BedWars') // custom name
multiModuleApiSubproject('BedWars-API', 'org.screamingsandals.bedwars.api.utils.Wrapper')
useApiConfigurationInsteadOfImplementation(true)
additionalContent {
module('cloud')
module('hologram')
module('placeholders')
module('sidebar')
module('healthindicator')
module('npc')
module('signs')
module('economy')
lang()
singleModule('cloud-extras')
simpleInventories {
version(libs.versions.simple.inventories)
}
}
}
}
enableShadowPlugin()
configurations.all {
// Check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
maven { url 'https://repo.onarandombox.com/content/groups/public' }
maven { url 'https://repo.codemc.org/repository/maven-public/' }
maven { url 'https://repo.alessiodp.com/releases/' }
}
shadowJar {
relocate 'com.zaxxer', 'org.screamingsandals.bedwars.lib.HikariCP'
relocate 'org.bstats', 'org.screamingsandals.bedwars.lib.ext.bstats'
relocate 'io.papermc.lib', 'org.screamingsandals.bedwars.lib.ext.paperlib'
relocate 'org.spongepowered.configurate', 'org.screamingsandals.bedwars.lib.ext.configurate'
relocate 'org.yaml.snakeyaml', 'org.screamingsandals.bedwars.lib.ext.snakeyaml'
relocate 'com.google.gson', 'org.screamingsandals.bedwars.lib.ext.gson'
relocate 'com.typesafe.config', 'org.screamingsandals.bedwars.lib.ext.typesafe'
relocate 'io.leangen.geantyref', 'org.screamingsandals.bedwars.lib.ext.geantyref'
relocate 'org.checkerframework', 'org.screamingsandals.bedwars.lib.ext.checkerframework'
relocate 'cloud.commandframework', 'org.screamingsandals.bedwars.lib.ext.cloud'
relocate 'me.lucko.commodore', 'org.screamingsandals.bedwars.lib.ext.commodore'
if (System.getenv('BUILD_NUMBER') != null) {
archiveClassifier.set(System.getenv('BUILD_NUMBER'))
} else {
archiveClassifier.set('dev')
}
}
sourceCompatibility = '11.0'
}