forked from ScreamingSandals/BedWars
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
64 lines (55 loc) · 2.78 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
plugins {
id 'org.screamingsandals.plugin-builder' version "${SCREAMING_PLUGIN_BUILDER_VERSION}" apply false
id 'org.screamingsandals.nms-mapper' version "${NMS_MAPPER_VERSION}" apply false
id 'com.github.gmazzo.buildconfig' version "${BUILDCONFIG_VERSION}" apply false
}
allprojects {
group = 'org.screamingsandals.bedwars'
version = BEDWARS_VERSION
}
if (version.toString().endsWith('-SNAPSHOT')) {
defaultTasks 'clean', 'screamCompile'
} else {
defaultTasks 'clean', 'screamCompile', ':BedWars-API:allowJavadocUpload'
}
subprojects {
apply plugin: 'java'
apply plugin: 'org.screamingsandals.plugin-builder'
enableShadowPlugin()
configurations.all {
// Check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
repositories {
mavenLocal()
maven { url 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
maven { url 'https://repo.onarandombox.com/content/groups/public' }
maven { url 'https://ci.frostcast.net/plugin/repository/everything' }
maven { url 'https://repo.codemc.org/repository/maven-public/' }
maven { url 'https://repo.alessiodp.com/releases/' }
maven { url 'https://jitpack.io' }
}
shadowJar {
relocate 'com.zaxxer', 'org.screamingsandals.bedwars.lib.HikariCP'
relocate 'org.screamingsandals.simpleinventories', 'org.screamingsandals.bedwars.lib.sgui'
relocate 'org.screamingsandals.lib.utils.Wrapper', 'org.screamingsandals.bedwars.api.utils.Wrapper'
relocate 'org.screamingsandals.lib', 'org.screamingsandals.bedwars.lib'
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 'net.kyori', 'org.screamingsandals.bedwars.lib.ext.kyori'
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'
}