-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
39 lines (34 loc) · 1.28 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.gradleup.shadow' version '9.0.0-beta4'
}
group 'fr.romitou.mongosk'
version '2.3.2'
repositories {
mavenCentral()
maven { url = 'https://repo.destroystokyo.com/repository/maven-public/' }
maven { url = 'https://repo.papermc.io/repository/maven-public/' }
maven { url = 'https://jitpack.io' }
}
dependencies {
implementation group: 'org.mongodb', name: 'mongodb-driver-reactivestreams', version: '5.3.1'
compileOnly group: 'io.papermc.paper', name: 'paper-api', version: '1.21.4-R0.1-SNAPSHOT'
compileOnly group: 'com.github.SkriptLang', name: 'Skript', version: '2.10.1', {
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'
}