forked from Mezy/UhcCore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
105 lines (96 loc) · 2.9 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
import org.apache.tools.ant.filters.ReplaceTokens
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:5.1.0'
}
}
allprojects {
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
group = pluginGroup
version = pluginVersion
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
maven {
// Spigot
url = 'https://hub.spigotmc.org/nexus/content/groups/public/'
}
maven {
// VaultAPI
url = 'https://jitpack.io'
}
maven {
// WorldEdit
url = 'https://maven.enginehub.org/repo/'
}
maven {
// ProtocolLib
url "http://repo.dmulloy2.net/nexus/repository/public/"
}
// PaperLib
maven {
url 'https://papermc.io/repo/repository/maven-public/'
}
// AnvilGUI
maven {
url 'https://repo.codemc.io/repository/maven-snapshots/'
}
// DiscordSRV
maven {
url 'https://nexus.scarsz.me/content/groups/public/'
}
//JDA (DiscordSRV)
maven {
name 'm2-dv8tion'
url 'https://m2.dv8tion.net/releases'
}
//MCDiscordReserializer (DiscordSRV)
maven {
name 'Vankka-Nexus'
url 'https://nexus.vankka.dev/repository/maven-public/'
}
flatDir {
dirs 'libs'
}
flatDir {
dirs 'libs'
}
}
processResources {
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}
}
dependencies {
shadow 'com.google.code.findbugs:jsr305:3.0.2'
//shadow 'org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT'
//shadow 'org.spigotmc:spigot-api:1.12.2-R0.1-SNAPSHOT'
//shadow 'org.spigotmc:spigot-api:1.13.2-R0.1-SNAPSHOT'
//shadow 'org.spigotmc:spigot-api:1.14.2-R0.1-SNAPSHOT'
//shadow 'org.spigotmc:spigot-api:1.15.2-R0.1-SNAPSHOT'
//shadow 'org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT'
//shadow 'org.spigotmc:spigot-api:1.17-R0.1-SNAPSHOT'
shadow 'org.spigotmc:spigot-api:1.18-R0.1-SNAPSHOT'
shadow 'com.github.MilkBowl:VaultAPI:1.7'
shadow 'net.wesjd:anvilgui:1.5.3-SNAPSHOT'
compile name: 'BiomeMapping-1.3'
compile "io.papermc:paperlib:1.0.5"
shadow 'com.comphenix.protocol:ProtocolLib:4.4.0'
compile project('Support-WorldEdit-6')
compile project('Support-WorldEdit-7')
compileOnly 'com.discordsrv:discordsrv:1.22.0'
}
shadowJar {
classifier = ''
configurations = [project.configurations.compile]
relocate 'io.papermc.lib', 'com.gmail.val59000mc.paperlib'
relocate 'net.dv8tion.jda', 'github.scarsz.discordsrv.dependencies.jda'
}
build.dependsOn(shadowJar)