Skip to content

Commit

Permalink
fix: Signable in token/entity not be packaged correctly in the jar fo… (
Browse files Browse the repository at this point in the history
#95)

* fix: Signable in token/entity not be packaged correctly in the jar for attestation.id.

* adding comment after Hu

Co-authored-by: Weiwu Zhang <[email protected]>
  • Loading branch information
foxgem and Weiwu Zhang authored Jan 8, 2021
1 parent a340ec4 commit df35309
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit df35309

Please sign in to comment.