Do not shade references to external annotations. (#802)

This commit is contained in:
Chris Rankin 2018-05-03 14:27:51 +01:00 committed by GitHub
parent c044096260
commit 11b7bfcaf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@
* Distribution of this file or any portion thereof via any medium without the express permission of R3 is strictly prohibited.
*/
plugins {
id "com.github.johnrengelman.shadow" version "2.0.3"
id "com.github.johnrengelman.shadow" version "2.0.4"
}
apply plugin: 'kotlin'
apply plugin: 'net.corda.plugins.quasar-utils'
@ -104,7 +104,13 @@ shadowJar {
relocate 'org.apache.jute.', 'net.corda.shaded.org.apache.jute.'
relocate 'org.apache.commons.', 'net.corda.shaded.org.apache.commons.'
relocate 'org.jboss.netty.', 'net.corda.shaded.org.jboss.netty.'
relocate 'com.google.', 'net.corda.shaded.com.google.'
relocate ('com.google.', 'net.corda.shaded.com.google.') {
// This JAR uses annotations from these packages. However,
// the annotation classes themselves are not included here
// and so we cannot relocate their references.
exclude 'com.google.errorprone.**'
exclude 'com.google.j2objc.**'
}
}
task testJar(type: Jar) {