forked from ScreamingSandals/BedWars
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
71 lines (61 loc) · 2.92 KB
/
build.gradle
File metadata and controls
71 lines (61 loc) · 2.92 KB
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
defaultTasks 'clean', 'screamCompile', ':BedWars-API:allowJavadocUpload'
allprojects {
group = 'org.screamingsandals.bedwars'
version = BEDWARS_VERSION
}
buildscript {
repositories {
mavenLocal()
maven { url 'https://repo.screamingsandals.org/public/' }
maven { url 'https://plugins.gradle.org/m2' }
}
dependencies {
classpath 'org.screamingsandals.gradle.builder:screaming-plugin-builder:' + SCREAMING_PLUGIN_BUILDER_VERSION
classpath "com.github.gmazzo:gradle-buildconfig-plugin:" + BUILDCONFIG_VERSION
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'org.screamingsandals.gradle.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' }
maven { url 'https://repo.citizensnpcs.co' }
}
dependencies {
compileOnly paperLegacy(PAPER_VERSION)
}
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'
}