mirror of
https://github.com/corda/corda.git
synced 2025-03-14 08:16:32 +00:00
Do not shade references to external annotations. (#802)
This commit is contained in:
parent
c044096260
commit
11b7bfcaf5
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user