更换okhttp为apache httpclient,尝试减少插件体积

This commit is contained in:
2024-07-12 19:04:05 +08:00
parent 2b79f0e1e8
commit 65665d88df
9 changed files with 174 additions and 96 deletions

View File

@@ -20,13 +20,14 @@ repositories {
dependencies {
compileOnly "org.spigotmc:spigot-api:1.13-R0.1-SNAPSHOT"
implementation 'com.squareup.okhttp3:okhttp:4.9.3'
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
//implementation 'org.apache.httpcomponents.client5:httpclient5:5.4-beta1'
implementation 'org.json:json:20231013'
}
shadowJar {
archiveFileName = "MineChatGPT-${project.version}.jar"
relocate 'okhttp3', 'com.ddaodan.minechatgpt.libs.okhttp3'
relocate 'org.apache.http', 'com.ddaodan.shaded.org.apache.http'
relocate 'org.json', 'com.ddaodan.minechatgpt.libs.org.json'
}