Plan/Plan/common/build.gradle

60 lines
2.2 KiB
Groovy
Raw Normal View History

dependencies {
compile "com.djrapitops:AbstractPluginFramework-api:$abstractPluginFrameworkVersion"
2019-04-03 21:44:26 +02:00
compile project(":api")
compile project(path: ":extensions", configuration: 'shadow')
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"
compile "mysql:mysql-connector-java:$mysqlVersion"
compile "com.zaxxer:HikariCP:$hikariVersion"
2019-01-08 20:36:13 +01:00
compile "org.slf4j:slf4j-nop:$slf4jVersion"
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-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"
}
shadowJar {
configurations = [project.configurations.compile]
// Exclude these files
exclude "**/*.svg"
exclude "**/*.ttf"
exclude "**/*.woff"
exclude "**/*.eot"
exclude "**/*.woff2"
exclude "**/*.psd"
exclude "**/module-info.class"
2019-04-03 22:14:55 +02:00
exclude 'META-INF/versions/' // Causes Sponge to crash
relocate('org.apache', 'plan.org.apache') {
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'
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'
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/**/*"
exclude "google/protobuf/**/*"
exclude "jargs/gnu/**/*"
}