2018-12-18 20:13:05 +01:00
|
|
|
dependencies {
|
|
|
|
compile "com.djrapitops:AbstractPluginFramework-api:$abstractPluginFrameworkVersion"
|
2019-04-03 21:44:26 +02:00
|
|
|
compile project(":api")
|
2019-03-20 12:37:56 +01:00
|
|
|
compile project(path: ":extensions", configuration: 'shadow')
|
2018-12-18 20:13:05 +01:00
|
|
|
compile "org.apache.httpcomponents:httpclient:$httpClientVersion"
|
|
|
|
compile "org.apache.commons:commons-text:$commonsTextVersion"
|
|
|
|
compile "com.googlecode.htmlcompressor:htmlcompressor:$htmlCompressorVersion"
|
|
|
|
compile "com.github.ben-manes.caffeine:caffeine:$caffeineVersion"
|
|
|
|
compile "com.h2database:h2:$h2Version"
|
2019-07-08 11:16:06 +02:00
|
|
|
compile "mysql:mysql-connector-java:$mysqlVersion"
|
2018-12-18 20:13:05 +01:00
|
|
|
compile "com.zaxxer:HikariCP:$hikariVersion"
|
2019-01-08 20:36:13 +01:00
|
|
|
compile "org.slf4j:slf4j-nop:$slf4jVersion"
|
2018-12-18 20:13:05 +01:00
|
|
|
compile "org.slf4j:slf4j-api:$slf4jVersion"
|
|
|
|
compile "com.maxmind.geoip2:geoip2:$geoIpVersion"
|
2019-08-06 07:11:05 +02:00
|
|
|
compile "com.google.code.gson:gson:$gsonVersion"
|
2019-03-20 16:17:23 +01:00
|
|
|
|
2019-04-03 21:44:26 +02:00
|
|
|
testCompile project(":api")
|
2019-08-06 07:11:05 +02:00
|
|
|
testCompile "com.google.code.gson:gson:$gsonVersion"
|
2018-12-18 20:13:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
2018-12-19 18:08:07 +01:00
|
|
|
configurations = [project.configurations.compile]
|
|
|
|
|
|
|
|
// Exclude these files
|
|
|
|
exclude "**/*.svg"
|
|
|
|
exclude "**/*.ttf"
|
|
|
|
exclude "**/*.woff"
|
|
|
|
exclude "**/*.eot"
|
|
|
|
exclude "**/*.woff2"
|
|
|
|
exclude "**/*.psd"
|
|
|
|
|
2019-08-01 19:35:33 +02:00
|
|
|
exclude "**/module-info.class"
|
2019-04-03 22:14:55 +02:00
|
|
|
exclude 'META-INF/versions/' // Causes Sponge to crash
|
|
|
|
|
2018-12-19 18:08:07 +01:00
|
|
|
relocate('org.apache', 'plan.org.apache') {
|
2018-12-18 20:13:05 +01:00
|
|
|
exclude 'org/apache/logging/**'
|
|
|
|
}
|
|
|
|
relocate 'com.maxmind', 'plan.com.maxmind'
|
|
|
|
relocate 'com.fasterxml', 'plan.com.fasterxml'
|
|
|
|
relocate 'com.zaxxer', 'plan.com.zaxxer'
|
2019-04-03 22:14:55 +02:00
|
|
|
relocate 'com.github.benmanes', 'plan.com.github.benmanes'
|
2019-10-25 13:39:55 +02:00
|
|
|
relocate 'com.googlecode.htmlcompressor', 'plan.com.google.htmlcompressor'
|
|
|
|
relocate 'com.google.protobuf', 'plan.com.google.protobuf'
|
|
|
|
relocate 'com.google.gson', 'plan.com.google.gson'
|
|
|
|
relocate 'com.google.errorprone', 'plan.com.google.errorprone'
|
2018-12-18 20:13:05 +01:00
|
|
|
relocate 'org.h2', 'plan.org.h2'
|
|
|
|
relocate 'org.bstats', 'plan.org.bstats'
|
|
|
|
relocate 'org.slf4j', 'plan.org.slf4j'
|
2019-04-03 22:14:55 +02:00
|
|
|
|
|
|
|
// Exclude test dependencies
|
|
|
|
exclude "org/junit/**/*"
|
|
|
|
exclude "org/opentest4j/**/*"
|
|
|
|
exclude "org/checkerframework/**/*"
|
|
|
|
exclude "org/apiguardian/**/*"
|
|
|
|
exclude "org/mockito/**/*"
|
|
|
|
exclude "org/selenium/**/*"
|
|
|
|
exclude "org/jayway/**/*"
|
2019-10-25 13:39:55 +02:00
|
|
|
exclude "google/protobuf/**/*"
|
|
|
|
exclude "jargs/gnu/**/*"
|
2018-12-18 20:13:05 +01:00
|
|
|
}
|