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
73 lines (63 loc) · 3.05 KB
/
build.gradle
File metadata and controls
73 lines (63 loc) · 3.05 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
72
73
defaultTasks 'clean', 'screamCompile'
allprojects {
group = 'org.screamingsandals.bedwars'
version = BEDWARS_VERSION
}
buildscript {
repositories {
maven { url 'https://repo.screamingsandals.org/public/' }
maven { url 'https://plugins.gradle.org/m2' }
}
dependencies {
classpath 'org.screamingsandals.gradle.builder:screaming-plugin-builder:1.0.39'
classpath 'gradle.plugin.de.fuerstenau:BuildConfigPlugin:1.1.8'
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'org.screamingsandals.gradle.builder'
enableShadowPlugin()
configurations.all {
// Check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
repositories {
mavenLocal() // remove after testing
maven { url 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
maven { url 'http://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' }
/* Our gitlab repo for scoreboard lib*/
maven { url 'https://gitlab.hoznet.dev/api/v4/projects/13/packages/maven' }
}
dependencies {
compileOnly paper(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 'pronze.lib', 'org.screamingsandals.bedwars.lib.ext.pronze'
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'
}