-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
39 lines (34 loc) · 1.27 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '7.1.2'
}
group 'fr.romitou.mongosk'
version '2.3.2'
repositories {
mavenCentral()
maven { url = 'https://repo.destroystokyo.com/repository/maven-public/' }
maven { url = 'https://papermc.io/repo/repository/maven-public/' }
maven { url = 'https://jitpack.io' }
}
dependencies {
implementation group: 'org.mongodb', name: 'mongodb-driver-reactivestreams', version: '4.11.1'
shadow group: 'io.papermc.paper', name: 'paper-api', version: '1.20.4-R0.1-SNAPSHOT'
shadow group: 'com.github.SkriptLang', name: 'Skript', version: '2.8.0', {
exclude module: 'Vault'
exclude module: 'worldguard'
exclude module: 'worldguard-legacy'
}
}
compileJava {
options.compilerArgs += ['-source', '1.8', '-target', '1.8']
options.encoding = 'UTF-8'
}
shadowJar {
// Remove all classes of dependencies that are not used by the project
minimize()
// Relocate dependencies in order to avoid conflicts with other plugins
relocate 'com.mongodb', 'fr.romitou.mongosk.libs.driver'
relocate 'org.bson', 'fr.romitou.mongosk.libs.bson'
relocate 'org.reactivestreams', 'fr.romitou.mongosk.libs.reactivestreams'
relocate 'reactor', 'fr.romitou.mongosk.libs.reactor'
}