diff --git a/build.gradle b/build.gradle index dc9956d3..5cd5c29f 100644 --- a/build.gradle +++ b/build.gradle @@ -107,14 +107,24 @@ task packageLibs(type: Jar) { fileMode = 0755 } +// exclude bunch of com/alphawallet/… but include token/entity and Signable class task packageAttestation(type: Jar) { from compileJava from processResources - exclude 'com/alphawallet/attestation/demo' - exclude 'com/alphawallet/ethereum/**' - exclude 'com/alphawallet/token/**' - exclude 'id/attestation/**' - exclude 'dk/**' + exclude { + if(it.relativePath.pathString.startsWith('com/alphawallet/attestation/demo') + || it.relativePath.pathString.startsWith('com/alphawallet/ethereum') + || it.relativePath.pathString.startsWith('com/alphawallet/token/tools') + || it.relativePath.pathString.startsWith('com/alphawallet/token/util') + || it.relativePath.pathString.startsWith('id/attestation') + || it.relativePath.pathString.startsWith('dk')){ + return true + } else if(!it.directory + && it.relativePath.pathString.startsWith('com/alphawallet/token/entity') + && it.name != 'Signable.class'){ + return true + } + } manifest { attributes('Implementation-Title': project.name, 'Implementation-Version': project.version)