Excluded test dependencies

This commit is contained in:
Rsl1122 2019-04-03 23:14:55 +03:00
parent 576ec7c1a5
commit 8ff4a12bd7
2 changed files with 14 additions and 7 deletions

View File

@ -116,11 +116,7 @@ subprojects {
testCompile "org.xerial:sqlite-jdbc:3.27.2.1" // SQLite
testCompile "mysql:mysql-connector-java:8.0.15" // MySQL
}
shadowJar {
exclude 'META-INF/versions/'
}
configurations {
testArtifacts.extendsFrom testRuntime
}

View File

@ -21,7 +21,6 @@ shadowJar {
configurations = [project.configurations.compile]
// Exclude these files
exclude "org/json/**/*"
exclude "**/*.svg"
exclude "**/*.ttf"
exclude "**/*.woff"
@ -29,14 +28,26 @@ shadowJar {
exclude "**/*.woff2"
exclude "**/*.psd"
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'
relocate 'com.github.benmanes', 'plan.com.github.benmanes'
relocate 'com.googlecode', 'plan.com.googlecode'
relocate 'org.h2', 'plan.org.h2'
relocate 'org.bstats', 'plan.org.bstats'
relocate 'org.slf4j', 'plan.org.slf4j'
relocate 'com.google.dagger', 'plan.com.google.dagger'
// Exclude test dependencies
exclude "org/junit/**/*"
exclude "org/opentest4j/**/*"
exclude "org/checkerframework/**/*"
exclude "org/apiguardian/**/*"
exclude "org/mockito/**/*"
exclude "org/selenium/**/*"
exclude "org/jayway/**/*"
}