mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-06 15:44:49 +08:00
Removed unnecessary libraries from the jar
- Removed http client dependency - Removed html compressor dependency - No longer shadowing http client from geolite2 dependencies
This commit is contained in:
parent
c15793cd44
commit
42ecfa7298
@ -77,10 +77,8 @@ subprojects {
|
||||
ext.velocityVersion = "1.0.0-SNAPSHOT"
|
||||
ext.redisBungeeVersion = "0.6"
|
||||
|
||||
ext.httpClientVersion = "4.5.13"
|
||||
ext.commonsTextVersion = "1.9"
|
||||
ext.commonsCompressVersion = "1.20"
|
||||
ext.htmlCompressorVersion = "1.5.2"
|
||||
ext.caffeineVersion = "2.8.0"
|
||||
ext.h2Version = "1.4.199"
|
||||
ext.mysqlVersion = "8.0.23"
|
||||
|
@ -3,10 +3,8 @@ dependencies {
|
||||
compile project(":api")
|
||||
compileOnly project(":extensions")
|
||||
compile project(path: ":extensions", configuration: 'shadow')
|
||||
compile "org.apache.httpcomponents:httpclient:$httpClientVersion"
|
||||
compile "org.apache.commons:commons-text:$commonsTextVersion"
|
||||
compile "org.apache.commons:commons-compress:$commonsCompressVersion"
|
||||
compile "com.googlecode.htmlcompressor:htmlcompressor:$htmlCompressorVersion"
|
||||
compile "com.github.ben-manes.caffeine:caffeine:$caffeineVersion"
|
||||
compile "com.h2database:h2:$h2Version"
|
||||
compile "mysql:mysql-connector-java:$mysqlVersion"
|
||||
@ -45,8 +43,9 @@ shadowJar {
|
||||
exclude "**/*.psd"
|
||||
|
||||
exclude "**/module-info.class"
|
||||
exclude 'META-INF/versions/' // Causes Sponge to crash
|
||||
|
||||
exclude 'META-INF/versions/' // Causes Sponge to crash
|
||||
exclude 'org/apache/http/**/*' // Unnecessary http client depended on by geolite2 implementation
|
||||
exclude 'mozilla/**/*'
|
||||
|
||||
relocate 'com.maxmind', 'plan.com.maxmind'
|
||||
relocate 'com.fasterxml', 'plan.com.fasterxml'
|
||||
|
@ -21,6 +21,7 @@ shadowJar {
|
||||
}
|
||||
relocate 'dagger', 'plan.dagger'
|
||||
relocate 'com.mysql.jdbc', 'plan.com.mysql.jdbc'
|
||||
relocate 'org.sqlite', 'plan.org.sqlite'
|
||||
relocate 'com.mysql.cj', 'plan.com.mysql.cj'
|
||||
relocate 'javax.inject', 'plan.javax.inject'
|
||||
relocate 'com.github.benmanes', 'plan.com.github.benmanes'
|
||||
|
Loading…
Reference in New Issue
Block a user