-
Notifications
You must be signed in to change notification settings - Fork 21
/
build.gradle
116 lines (108 loc) · 4.22 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
106
107
108
109
110
111
112
113
114
115
116
//file:noinspection GroovyUnusedAssignment
//file:noinspection GrUnresolvedAccess
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '7.1.2'
}
group 'cn.apisium.nekomaid'
version '1.0-SNAPSHOT'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
maven {
name = 'papermc'
url = 'https://papermc.io/repo/repository/maven-public/'
}
maven {
name = 'sonatype'
url = 'https://oss.sonatype.org/content/groups/public/'
}
maven {
name = 'jitpack'
url = 'https://www.jitpack.io'
}
maven {
name = 'PlugMan'
url = 'https://raw.githubusercontent.com/TheBlackEntity/PlugMan/repository/'
}
maven {
name = 'ServerUtils'
url = 'https://repo.fvdh.dev/releases'
}
maven {
name = 'placeholderapi'
url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/'
}
maven {
name = 'CodeMC'
url = 'https://repo.codemc.org/repository/maven-public/'
}
maven {
name = 'onarandombox'
url = 'https://repo.onarandombox.com/content/groups/public/'
}
}
dependencies {
//noinspection VulnerableLibrariesLocal
compileOnly 'com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT'
compileOnly 'org.jetbrains:annotations:23.0.0'
compileOnly 'io.netty:netty-all:4.1.85.Final'
compileOnly 'org.apache.logging.log4j:log4j-core:2.19.0'
compileOnly 'com.github.Apisium:Uniporter:1.3.4-SNAPSHOT'
compileOnly 'com.github.jikoo.OpenInv:openinvapi:2f36a4d4dc'
compileOnly 'me.clip:placeholderapi:2.11.2'
compileOnly 'de.tr7zw:item-nbt-api-plugin:2.8.0'
compileOnly 'com.rylinaux:PlugMan:2.2.9'
compileOnly("net.frankheijden.serverutils:ServerUtils:3.5.3")
compileOnly 'com.github.oshi:oshi-core:6.3.1'
compileOnly 'com.onarandombox.multiversecore:Multiverse-Core:4.3.2-SNAPSHOT'
compileOnly ('com.github.MilkBowl:VaultAPI:1.7') {
exclude group: 'org.bukkit'
}
compileOnly ('org.spigotmc:plugin-annotations:1.2.3-SNAPSHOT') {
exclude group: 'org.bukkit'
}
implementation 'org.json:json:20220924'
implementation 'com.alibaba.fastjson2:fastjson2:2.0.19'
implementation 'org.bstats:bstats-bukkit:3.0.0'
implementation 'com.github.Apisium:netty-engine.io:fdd2609085'
implementation 'org.apache.commons:commons-compress:1.21'
implementation 'commons-io:commons-io:2.11.0'
implementation ('io.socket:engine.io-server:6.2.1') {
exclude group: 'com.google.code.gson'
}
implementation ('com.maxmind.geoip2:geoip2:2.15.0') {
exclude group: 'org.apache.httpcomponents'
exclude group: 'com.fasterxml.jackson.core'
exclude group: 'commons-codec'
}
implementation ('io.socket:socket.io-server:4.0.1') {
exclude group: 'org.json'
exclude group: 'com.squareup.okhttp3'
exclude group: 'io.socket', module: 'engine.io-server'
exclude group: 'io.socket', module: 'engine.io-client'
}
implementation ('io.netty:netty-codec-http:4.1.85.Final') {
exclude group: 'io.netty'
}
annotationProcessor 'org.spigotmc:plugin-annotations:1.2.3-SNAPSHOT'
}
shadowJar {
relocate('com.alibaba', 'cn.apisium.nekomaid.libs.com.alibaba')
relocate('org.json', 'cn.apisium.nekomaid.libs.org.json')
relocate('javax.servlet', 'cn.apisium.nekomaid.libs.javax.servlet')
relocate('org.bstats', 'cn.apisium.nekomaid.libs.org.bstats')
relocate('org.apache.commons.io', 'cn.apisium.nekomaid.libs.org.apache.commons.io')
relocate('org.apache.commons.compress', 'cn.apisium.nekomaid.libs.org.apache.commons.compress')
relocate('io.socket', 'cn.apisium.nekomaid.libs.io.socket')
relocate('com.maxmind', 'cn.apisium.nekomaid.libs.com.maxmind')
relocate('io.netty.handler.codec.http.websocketx', 'cn.apisium.nekomaid.libs.io.netty.handler.codec.http.websocketx')
relocate('io.netty.handler.codec.http.multipart', 'cn.apisium.nekomaid.libs.io.netty.handler.codec.http.multipart')
exclude 'io/papermc/**'
exclude 'com/janboerman/**'
exclude 'io/netty/handler/codec/http/*'
archiveClassifier.set('')
minimize()
}
build.dependsOn(shadowJar)