-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
91 lines (78 loc) · 3.05 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
plugins {
id 'java'
id 'idea'
id 'com.gradleup.shadow' version '8.3.5'
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
repositories {
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url 'https://oss.sonatype.org/content/repositories/central' }
maven { url 'https://repo.codemc.io/repository/nms/' }
maven { url 'https://jitpack.io' }
maven { url 'https://nexus.phoenixdevt.fr/repository/maven-public/' }
maven { url 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
mavenCentral()
}
processResources {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
from(sourceSets.main.resources.srcDirs) {
include 'plugin.yml'
expand(rootProject.properties)
}
}
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.21.4-R0.1-SNAPSHOT'
compileOnly 'com.github.oraxen:oraxen:1.173.0'
compileOnly('io.lumine:MythicLib-dist:1.6.2-SNAPSHOT') { transitive = false } // Required by MMOItems
compileOnly('net.Indyuce:MMOItems-API:6.10-SNAPSHOT') { transitive = false }
compileOnly('com.github.LoneDev6:API-ItemsAdder:3.6.3-beta-14') { transitive = false }
compileOnly 'me.clip:placeholderapi:2.11.6'
compileOnly 'net.luckperms:api:5.4'
// Library loader
implementation 'com.saicone.ezlib:ezlib:1.3.0'
implementation 'com.saicone.ezlib:loader:1.3.0'
compileOnly 'com.saicone.ezlib:annotations:1.3.0'
annotationProcessor 'com.saicone.ezlib:annotations:1.3.0'
// Implementation
compileOnly 'com.github.cryptomorin:XSeries:13.0.0'
compileOnly 'com.saicone.rtag:rtag:1.5.9'
compileOnly 'com.saicone.rtag:rtag-item:1.5.9'
compileOnly 'com.saicone.nbt:nbt:1.0.0'
compileOnly 'com.saicone.delivery4j:delivery4j:1.1'
compileOnly 'com.saicone.delivery4j:broker-sql-hikari:1.1'
compileOnly 'com.saicone.delivery4j:broker-redis:1.1'
compileOnly 'com.saicone.delivery4j:broker-rabbitmq:1.1'
compileOnly 'org.jetbrains:annotations:26.0.2'
compileOnly fileTree(dir: 'libs', includes: ['*.jar'])
}
compileJava {
options.encoding = 'UTF-8'
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
jar {
enabled = false
dependsOn (shadowJar)
}
shadowJar {
archiveClassifier.set('')
relocate 'com.saicone.ezlib', project.group + '.ezlib'
relocate 'com.cryptomorin.xseries', project.group + '.libs.xseries'
relocate 'com.saicone.rtag', project.group + '.libs.rtag'
relocate 'com.zaxxer.hikari', project.group + '.libs.hikari'
relocate 'redis.clients.jedis', project.group + '.libs.jedis'
relocate 'com.rabbitmq', project.group + '.libs.rabbitmq'
relocate 'com.google.common', project.group + '.libs.guava'
relocate 'com.google.gson', project.group + '.libs.gson'
relocate 'com.saicone.delivery4j', project.group + '.libs.delivery4j'
relocate 'com.saicone.nbt', project.group + '.libs.nbt'
minimize()
}